Documentation ¶
Overview ¶
Package search is a wrapper around the blevesearch/bleve search indexing and query package, and provides interfaces to extend kudzu items with rich, full-text search capability.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Backup ¶
func Backup(ctx context.Context, res http.ResponseWriter) error
Backup creates an archive of a project's search index and writes it to the response as a download
func DeleteIndex ¶
DeleteIndex removes data from a content type's search index at the given identifier
func MapIndex ¶
MapIndex creates the mapping for a type and tracks the index to be used within the system for adding/deleting/checking data
func TypeQuery ¶
TypeQuery conducts a search and returns a set of kudzu "targets", Type:ID pairs, and an error. If there is no search index for the typeName (Type) provided, db.ErrNoIndex will be returned as the error
func UpdateIndex ¶
UpdateIndex sets data into a content type's search index at the given identifier
Types ¶
type Searchable ¶
type Searchable interface { SearchMapping() (*mapping.IndexMappingImpl, error) IndexContent() bool }
Searchable ...