bleve

package
v0.0.0-...-5129a00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator struct{}

Creator satisifies interface of the same name in index package. Hanldes creation of bleve index

func (Creator) CreateIndex

func (c Creator) CreateIndex(filepath string, games []index.GameSource) error

CreateIndex saves parsed index on the disk. The function uses batching to speed up the indexing

type Searcher

type Searcher struct {
	// contains filtered or unexported fields
}

Searcher implements the interface of the same name for indexes created by bleve

func NewBleveSearcher

func NewBleveSearcher(configs []index.Config) (*Searcher, []index.Config)

NewBleveSearcher initializes bleve implementation of Searcher

func (*Searcher) AddIndex

func (s *Searcher) AddIndex(cfg index.Config) error

AddIndex uses platform config to add another index to be used during searching

func (*Searcher) Close

func (s *Searcher) Close() error

Close closes all indexes of a Searcher opened by AddIndex Always needs to be called as NewSearcher invokes AddIndex too

func (Searcher) Search

func (s Searcher) Search(params index.SearchParameters) (index.Result, error)

Search returns aggregated results from indexes added to alias

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL