Documentation ¶
Overview ¶
Package search defines an interface for a search index management structure
Index ¶
Constants ¶
View Source
const (
// ElasticsearchProvider represents the elasticsearch search index provider.
ElasticsearchProvider = "elasticsearch"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Provider string `json:"provider" mapstructure:"provider" toml:"provider,omitempty"` // contains filtered or unexported fields }
Config contains settings regarding search indices.
type IndexManager ¶
type IndexManager interface { Index(ctx context.Context, id string, value interface{}) error Search(ctx context.Context, query, accountID string) (ids []string, err error) SearchForAdmin(ctx context.Context, query string) (ids []string, err error) Delete(ctx context.Context, id string) (err error) }
IndexManager is our wrapper interface for a text search index.
Directories ¶
Path | Synopsis |
---|---|
Package elasticsearch provides an interface-compatible wrapper around the elasticsearch indexer
|
Package elasticsearch provides an interface-compatible wrapper around the elasticsearch indexer |
Package mocksearch provides an interface-compatible search index mock
|
Package mocksearch provides an interface-compatible search index mock |
Click to show internal directories.
Click to hide internal directories.