searcher

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAllSearcher added in v0.7.3

func NewAllSearcher() search.Searcher

NewAllSearcher returns a new searcher for matching all documents.

func NewConjunctionSearcher

func NewConjunctionSearcher(searchers, negations search.Searchers) (search.Searcher, error)

NewConjunctionSearcher returns a new Searcher which matches documents which match each of the given searchers and none of the negations.

func NewDisjunctionSearcher

func NewDisjunctionSearcher(searchers search.Searchers) (search.Searcher, error)

NewDisjunctionSearcher returns a new Searcher which matches documents which are matched by any of the given Searchers.

func NewEmptySearcher

func NewEmptySearcher() search.Searcher

NewEmptySearcher returns a new searcher which always returns an empty postings list.

func NewFieldSearcher added in v0.8.1

func NewFieldSearcher(field []byte) (search.Searcher, error)

NewFieldSearcher returns a new searcher for finding documents which match the given field.

func NewNegationSearcher

func NewNegationSearcher(s search.Searcher) (search.Searcher, error)

NewNegationSearcher returns a new searcher for finding documents which do not match a given query.

func NewRegexpSearcher

func NewRegexpSearcher(field []byte, compiled index.CompiledRegex) search.Searcher

NewRegexpSearcher returns a new searcher for finding documents which match the given regular expression.

func NewTermSearcher

func NewTermSearcher(field, term []byte) search.Searcher

NewTermSearcher returns a new searcher for finding documents which match the given term.

Types

This section is empty.

Jump to

Keyboard shortcuts

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