Documentation ¶
Index ¶
- func NewConjunctionSearcher(numReaders int, searchers, negations search.Searchers) (search.Searcher, error)
- func NewDisjunctionSearcher(numReaders int, searchers search.Searchers) (search.Searcher, error)
- func NewEmptySearcher(numReaders int) search.Searcher
- func NewNegationSearcher(rs index.Readers, s search.Searcher) (search.Searcher, error)
- func NewRegexpSearcher(rs index.Readers, field, regexp []byte, compiled index.CompiledRegex) search.Searcher
- func NewTermSearcher(rs index.Readers, field, term []byte) search.Searcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConjunctionSearcher ¶
func NewConjunctionSearcher(numReaders int, 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. It is not safe for concurrent access.
func NewDisjunctionSearcher ¶
NewDisjunctionSearcher returns a new Searcher which matches documents which are matched by any of the given Searchers. It is not safe for concurrent access.
func NewEmptySearcher ¶
NewEmptySearcher returns a new searcher which always returns an empty postings list. It is not safe for concurrent access.
func NewNegationSearcher ¶
NewNegationSearcher returns a new searcher for finding documents which do not match a given query. It is not safe for concurrent access.
func NewRegexpSearcher ¶
func NewRegexpSearcher(rs index.Readers, field, regexp []byte, compiled index.CompiledRegex) search.Searcher
NewRegexpSearcher returns a new searcher for finding documents which match the given regular expression. It is not safe for concurrent access.
Types ¶
This section is empty.