searcher

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

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

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

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

func NewEmptySearcher(numReaders int) search.Searcher

NewEmptySearcher returns a new searcher which always returns an empty postings list. It is not safe for concurrent access.

func NewNegationSearcher

func NewNegationSearcher(rs index.Readers, s search.Searcher) (search.Searcher, error)

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.

func NewTermSearcher

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

NewTermSearcher returns a new searcher for finding documents which match the given term. It is not safe for concurrent access.

Types

This section is empty.

Jump to

Keyboard shortcuts

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