Documentation
¶
Index ¶
- Variables
- func Export(index *Index, path string) error
- type Gobber
- type Index
- func (i *Index) AddDocument(document core.Document) error
- func (i *Index) DeleteDocument(id core.DocumentID) error
- func (i *Index) GetAnalyzer() analysis.Analyzer
- func (i *Index) GetDocument(id core.DocumentID) core.Document
- func (i *Index) GetSpellSuggestions(terms []string, top int) (suggestions map[string][]string)
- func (i *Index) GetTermFrequencies(id core.DocumentID) core.TermFrequency
- func (i *Index) Length() int
- func (i *Index) SearchDocuments(query string, filterFn search.Filter, rankFn search.Ranker) (documentScores []core.DocumentScore)
- func (i *Index) UpdateDocument(document core.Document) error
- func (i *Index) UpsertDocument(document core.Document) error
- type Opts
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDuplicateDocument = errors.New("Cannot index duplicate document") ErrNonExistentDocument = errors.New("Document does not exist") )
Functions ¶
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) DeleteDocument ¶
func (i *Index) DeleteDocument(id core.DocumentID) error
func (*Index) GetAnalyzer ¶
func (*Index) GetDocument ¶
func (i *Index) GetDocument(id core.DocumentID) core.Document
func (*Index) GetSpellSuggestions ¶
func (*Index) GetTermFrequencies ¶
func (i *Index) GetTermFrequencies(id core.DocumentID) core.TermFrequency
func (*Index) SearchDocuments ¶
Click to show internal directories.
Click to hide internal directories.