Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Search ¶
func Search(i Index, p repo.SearchParams) ([]repo.DatasetRef, error)
Search searches this repo's bleve index
Types ¶
type IndexableMetadata ¶
type IndexableMetadata struct { Category string `json:"category"` Title string `json:"title"` Description string `json:"description"` Kind string `json:"kind"` ExternalScore int `json:"externalScore"` // contains filtered or unexported fields }
IndexableMetadata specifies the subset of fields we want to keep from a dataset's metadata file to be used in the bleveindex ExternalScore and internalScore are placeholders for future use.
func NewIndexableMetadataStruct ¶
func NewIndexableMetadataStruct() *IndexableMetadata
NewIndexableMetadataStruct sets the default variable used to identify document type to 'table'
func (*IndexableMetadata) MapValues ¶
func (imd *IndexableMetadata) MapValues() map[string]interface{}
MapValues converts the IndexableMetadata back to type map[string]interface{}
Click to show internal directories.
Click to hide internal directories.