Versions in this module Expand all Collapse all v0 v0.2.0 Feb 24, 2019 Changes in this version + type ClusterOpts struct + Peers []string + Port string + type DocData struct + Content string + Metadata *models.MetaDataV2 + Properties *DocProps + type DocProps struct + Indexed string + type Document struct + Content string + Object *models.ObjectV2 + Reindex bool + type Engine struct + func New(l *zap.SugaredLogger, opts Opts) (*Engine, error) + func (e *Engine) Close() + func (e *Engine) Index(doc Document) error + func (e *Engine) IsIndexed(hash string) bool + func (e *Engine) Remove(hash string) error + func (e *Engine) Run() + func (e *Engine) Search(ctx context.Context, q Query) ([]Result, error) + type Opts struct + Queue queue.Options + StorePath string + type Query struct + Categories []string + Hashes []string + MimeTypes []string + Required []string + Tags []string + Text string + func (q *Query) Hash() string + type Result struct + Hash string + MD models.MetaDataV2 + Score float64 + type Searcher interface + Close func() + Index func(doc Document) error + IsIndexed func(hash string) bool + Remove func(hash string) error + Search func(ctx context.Context, query Query) ([]Result, error)