Documentation ¶
Index ¶
- Variables
- type BooleanSearcher
- func (s *BooleanSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
- func (s *BooleanSearcher) Close() error
- func (s *BooleanSearcher) Count() uint64
- func (s *BooleanSearcher) DocumentMatchPoolSize() int
- func (s *BooleanSearcher) Min() int
- func (s *BooleanSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
- func (s *BooleanSearcher) SetQueryNorm(qnorm float64)
- func (s *BooleanSearcher) Weight() float64
- type ConjunctionSearcher
- func (s *ConjunctionSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
- func (s *ConjunctionSearcher) Close() error
- func (s *ConjunctionSearcher) Count() uint64
- func (s *ConjunctionSearcher) DocumentMatchPoolSize() int
- func (s *ConjunctionSearcher) Min() int
- func (s *ConjunctionSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
- func (s *ConjunctionSearcher) SetQueryNorm(qnorm float64)
- func (s *ConjunctionSearcher) Weight() float64
- type DisjunctionSearcher
- func (s *DisjunctionSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
- func (s *DisjunctionSearcher) Close() error
- func (s *DisjunctionSearcher) Count() uint64
- func (s *DisjunctionSearcher) DocumentMatchPoolSize() int
- func (s *DisjunctionSearcher) Min() int
- func (s *DisjunctionSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
- func (s *DisjunctionSearcher) SetQueryNorm(qnorm float64)
- func (s *DisjunctionSearcher) Weight() float64
- type DocIDSearcher
- func (s *DocIDSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
- func (s *DocIDSearcher) Close() error
- func (s *DocIDSearcher) Count() uint64
- func (s *DocIDSearcher) DocumentMatchPoolSize() int
- func (s *DocIDSearcher) Min() int
- func (s *DocIDSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
- func (s *DocIDSearcher) SetQueryNorm(qnorm float64)
- func (s *DocIDSearcher) Weight() float64
- type FuzzySearcher
- func (s *FuzzySearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
- func (s *FuzzySearcher) Close() error
- func (s *FuzzySearcher) Count() uint64
- func (s *FuzzySearcher) DocumentMatchPoolSize() int
- func (s *FuzzySearcher) Min() int
- func (s *FuzzySearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
- func (s *FuzzySearcher) SetQueryNorm(qnorm float64)
- func (s *FuzzySearcher) Weight() float64
- type MatchAllSearcher
- func (s *MatchAllSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
- func (s *MatchAllSearcher) Close() error
- func (s *MatchAllSearcher) Count() uint64
- func (s *MatchAllSearcher) DocumentMatchPoolSize() int
- func (s *MatchAllSearcher) Min() int
- func (s *MatchAllSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
- func (s *MatchAllSearcher) SetQueryNorm(qnorm float64)
- func (s *MatchAllSearcher) Weight() float64
- type MatchNoneSearcher
- func (s *MatchNoneSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
- func (s *MatchNoneSearcher) Close() error
- func (s *MatchNoneSearcher) Count() uint64
- func (s *MatchNoneSearcher) DocumentMatchPoolSize() int
- func (s *MatchNoneSearcher) Min() int
- func (s *MatchNoneSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
- func (s *MatchNoneSearcher) SetQueryNorm(qnorm float64)
- func (s *MatchNoneSearcher) Weight() float64
- type NumericRangeSearcher
- func (s *NumericRangeSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
- func (s *NumericRangeSearcher) Close() error
- func (s *NumericRangeSearcher) Count() uint64
- func (s *NumericRangeSearcher) DocumentMatchPoolSize() int
- func (s *NumericRangeSearcher) Min() int
- func (s *NumericRangeSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
- func (s *NumericRangeSearcher) SetQueryNorm(qnorm float64)
- func (s *NumericRangeSearcher) Weight() float64
- type OrderedSearcherList
- type PhraseSearcher
- func (s *PhraseSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
- func (s *PhraseSearcher) Close() error
- func (s *PhraseSearcher) Count() uint64
- func (s *PhraseSearcher) DocumentMatchPoolSize() int
- func (s *PhraseSearcher) Min() int
- func (s *PhraseSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
- func (s *PhraseSearcher) SetQueryNorm(qnorm float64)
- func (s *PhraseSearcher) Weight() float64
- type RegexpSearcher
- func (s *RegexpSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
- func (s *RegexpSearcher) Close() error
- func (s *RegexpSearcher) Count() uint64
- func (s *RegexpSearcher) DocumentMatchPoolSize() int
- func (s *RegexpSearcher) Min() int
- func (s *RegexpSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
- func (s *RegexpSearcher) SetQueryNorm(qnorm float64)
- func (s *RegexpSearcher) Weight() float64
- type TermPrefixSearcher
- func (s *TermPrefixSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
- func (s *TermPrefixSearcher) Close() error
- func (s *TermPrefixSearcher) Count() uint64
- func (s *TermPrefixSearcher) DocumentMatchPoolSize() int
- func (s *TermPrefixSearcher) Min() int
- func (s *TermPrefixSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
- func (s *TermPrefixSearcher) SetQueryNorm(qnorm float64)
- func (s *TermPrefixSearcher) Weight() float64
- type TermSearcher
- func (s *TermSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
- func (s *TermSearcher) Close() error
- func (s *TermSearcher) Count() uint64
- func (s *TermSearcher) DocumentMatchPoolSize() int
- func (s *TermSearcher) Min() int
- func (s *TermSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
- func (s *TermSearcher) SetQueryNorm(qnorm float64)
- func (s *TermSearcher) Weight() float64
Constants ¶
This section is empty.
Variables ¶
View Source
var DisjunctionMaxClauseCount = 0
DisjunctionMaxClauseCount is a compile time setting that applications can adjust to non-zero value to cause the DisjunctionSearcher to return an error instead of exeucting searches when the size exceeds this value.
Functions ¶
This section is empty.
Types ¶
type BooleanSearcher ¶
type BooleanSearcher struct {
// contains filtered or unexported fields
}
func NewBooleanSearcher ¶
func (*BooleanSearcher) Advance ¶
func (s *BooleanSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
func (*BooleanSearcher) Close ¶
func (s *BooleanSearcher) Close() error
func (*BooleanSearcher) Count ¶
func (s *BooleanSearcher) Count() uint64
func (*BooleanSearcher) DocumentMatchPoolSize ¶ added in v0.4.0
func (s *BooleanSearcher) DocumentMatchPoolSize() int
func (*BooleanSearcher) Min ¶
func (s *BooleanSearcher) Min() int
func (*BooleanSearcher) Next ¶
func (s *BooleanSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
func (*BooleanSearcher) SetQueryNorm ¶
func (s *BooleanSearcher) SetQueryNorm(qnorm float64)
func (*BooleanSearcher) Weight ¶
func (s *BooleanSearcher) Weight() float64
type ConjunctionSearcher ¶
type ConjunctionSearcher struct {
// contains filtered or unexported fields
}
func NewConjunctionSearcher ¶
func NewConjunctionSearcher(indexReader index.IndexReader, qsearchers []search.Searcher, explain bool) (*ConjunctionSearcher, error)
func (*ConjunctionSearcher) Advance ¶
func (s *ConjunctionSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
func (*ConjunctionSearcher) Close ¶
func (s *ConjunctionSearcher) Close() error
func (*ConjunctionSearcher) Count ¶
func (s *ConjunctionSearcher) Count() uint64
func (*ConjunctionSearcher) DocumentMatchPoolSize ¶ added in v0.4.0
func (s *ConjunctionSearcher) DocumentMatchPoolSize() int
func (*ConjunctionSearcher) Min ¶
func (s *ConjunctionSearcher) Min() int
func (*ConjunctionSearcher) Next ¶
func (s *ConjunctionSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
func (*ConjunctionSearcher) SetQueryNorm ¶
func (s *ConjunctionSearcher) SetQueryNorm(qnorm float64)
func (*ConjunctionSearcher) Weight ¶
func (s *ConjunctionSearcher) Weight() float64
type DisjunctionSearcher ¶
type DisjunctionSearcher struct {
// contains filtered or unexported fields
}
func NewDisjunctionSearcher ¶
func NewDisjunctionSearcher(indexReader index.IndexReader, qsearchers []search.Searcher, min float64, explain bool) (*DisjunctionSearcher, error)
func (*DisjunctionSearcher) Advance ¶
func (s *DisjunctionSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
func (*DisjunctionSearcher) Close ¶
func (s *DisjunctionSearcher) Close() error
func (*DisjunctionSearcher) Count ¶
func (s *DisjunctionSearcher) Count() uint64
func (*DisjunctionSearcher) DocumentMatchPoolSize ¶ added in v0.4.0
func (s *DisjunctionSearcher) DocumentMatchPoolSize() int
func (*DisjunctionSearcher) Min ¶
func (s *DisjunctionSearcher) Min() int
func (*DisjunctionSearcher) Next ¶
func (s *DisjunctionSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
func (*DisjunctionSearcher) SetQueryNorm ¶
func (s *DisjunctionSearcher) SetQueryNorm(qnorm float64)
func (*DisjunctionSearcher) Weight ¶
func (s *DisjunctionSearcher) Weight() float64
type DocIDSearcher ¶
type DocIDSearcher struct {
// contains filtered or unexported fields
}
DocIDSearcher returns documents matching a predefined set of identifiers.
func NewDocIDSearcher ¶
func NewDocIDSearcher(indexReader index.IndexReader, ids []string, boost float64, explain bool) (searcher *DocIDSearcher, err error)
func (*DocIDSearcher) Advance ¶
func (s *DocIDSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
func (*DocIDSearcher) Close ¶
func (s *DocIDSearcher) Close() error
func (*DocIDSearcher) Count ¶
func (s *DocIDSearcher) Count() uint64
func (*DocIDSearcher) DocumentMatchPoolSize ¶ added in v0.4.0
func (s *DocIDSearcher) DocumentMatchPoolSize() int
func (*DocIDSearcher) Min ¶
func (s *DocIDSearcher) Min() int
func (*DocIDSearcher) Next ¶
func (s *DocIDSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
func (*DocIDSearcher) SetQueryNorm ¶
func (s *DocIDSearcher) SetQueryNorm(qnorm float64)
func (*DocIDSearcher) Weight ¶
func (s *DocIDSearcher) Weight() float64
type FuzzySearcher ¶
type FuzzySearcher struct {
// contains filtered or unexported fields
}
func NewFuzzySearcher ¶
func NewFuzzySearcher(indexReader index.IndexReader, term string, prefix, fuzziness int, field string, boost float64, explain bool) (*FuzzySearcher, error)
func (*FuzzySearcher) Advance ¶
func (s *FuzzySearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
func (*FuzzySearcher) Close ¶
func (s *FuzzySearcher) Close() error
func (*FuzzySearcher) Count ¶
func (s *FuzzySearcher) Count() uint64
func (*FuzzySearcher) DocumentMatchPoolSize ¶ added in v0.4.0
func (s *FuzzySearcher) DocumentMatchPoolSize() int
func (*FuzzySearcher) Min ¶
func (s *FuzzySearcher) Min() int
func (*FuzzySearcher) Next ¶
func (s *FuzzySearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
func (*FuzzySearcher) SetQueryNorm ¶
func (s *FuzzySearcher) SetQueryNorm(qnorm float64)
func (*FuzzySearcher) Weight ¶
func (s *FuzzySearcher) Weight() float64
type MatchAllSearcher ¶
type MatchAllSearcher struct {
// contains filtered or unexported fields
}
func NewMatchAllSearcher ¶
func NewMatchAllSearcher(indexReader index.IndexReader, boost float64, explain bool) (*MatchAllSearcher, error)
func (*MatchAllSearcher) Advance ¶
func (s *MatchAllSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
func (*MatchAllSearcher) Close ¶
func (s *MatchAllSearcher) Close() error
func (*MatchAllSearcher) Count ¶
func (s *MatchAllSearcher) Count() uint64
func (*MatchAllSearcher) DocumentMatchPoolSize ¶ added in v0.4.0
func (s *MatchAllSearcher) DocumentMatchPoolSize() int
func (*MatchAllSearcher) Min ¶
func (s *MatchAllSearcher) Min() int
func (*MatchAllSearcher) Next ¶
func (s *MatchAllSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
func (*MatchAllSearcher) SetQueryNorm ¶
func (s *MatchAllSearcher) SetQueryNorm(qnorm float64)
func (*MatchAllSearcher) Weight ¶
func (s *MatchAllSearcher) Weight() float64
type MatchNoneSearcher ¶
type MatchNoneSearcher struct {
// contains filtered or unexported fields
}
func NewMatchNoneSearcher ¶
func NewMatchNoneSearcher(indexReader index.IndexReader) (*MatchNoneSearcher, error)
func (*MatchNoneSearcher) Advance ¶
func (s *MatchNoneSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
func (*MatchNoneSearcher) Close ¶
func (s *MatchNoneSearcher) Close() error
func (*MatchNoneSearcher) Count ¶
func (s *MatchNoneSearcher) Count() uint64
func (*MatchNoneSearcher) DocumentMatchPoolSize ¶ added in v0.4.0
func (s *MatchNoneSearcher) DocumentMatchPoolSize() int
func (*MatchNoneSearcher) Min ¶
func (s *MatchNoneSearcher) Min() int
func (*MatchNoneSearcher) Next ¶
func (s *MatchNoneSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
func (*MatchNoneSearcher) SetQueryNorm ¶
func (s *MatchNoneSearcher) SetQueryNorm(qnorm float64)
func (*MatchNoneSearcher) Weight ¶
func (s *MatchNoneSearcher) Weight() float64
type NumericRangeSearcher ¶
type NumericRangeSearcher struct {
// contains filtered or unexported fields
}
func NewNumericRangeSearcher ¶
func NewNumericRangeSearcher(indexReader index.IndexReader, min *float64, max *float64, inclusiveMin, inclusiveMax *bool, field string, boost float64, explain bool) (*NumericRangeSearcher, error)
func (*NumericRangeSearcher) Advance ¶
func (s *NumericRangeSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
func (*NumericRangeSearcher) Close ¶
func (s *NumericRangeSearcher) Close() error
func (*NumericRangeSearcher) Count ¶
func (s *NumericRangeSearcher) Count() uint64
func (*NumericRangeSearcher) DocumentMatchPoolSize ¶ added in v0.4.0
func (s *NumericRangeSearcher) DocumentMatchPoolSize() int
func (*NumericRangeSearcher) Min ¶
func (s *NumericRangeSearcher) Min() int
func (*NumericRangeSearcher) Next ¶
func (s *NumericRangeSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
func (*NumericRangeSearcher) SetQueryNorm ¶
func (s *NumericRangeSearcher) SetQueryNorm(qnorm float64)
func (*NumericRangeSearcher) Weight ¶
func (s *NumericRangeSearcher) Weight() float64
type OrderedSearcherList ¶
func (OrderedSearcherList) Len ¶
func (otrl OrderedSearcherList) Len() int
func (OrderedSearcherList) Less ¶
func (otrl OrderedSearcherList) Less(i, j int) bool
func (OrderedSearcherList) Swap ¶
func (otrl OrderedSearcherList) Swap(i, j int)
type PhraseSearcher ¶
type PhraseSearcher struct {
// contains filtered or unexported fields
}
func NewPhraseSearcher ¶
func NewPhraseSearcher(indexReader index.IndexReader, mustSearcher *ConjunctionSearcher, terms []string) (*PhraseSearcher, error)
func (*PhraseSearcher) Advance ¶
func (s *PhraseSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
func (*PhraseSearcher) Close ¶
func (s *PhraseSearcher) Close() error
func (*PhraseSearcher) Count ¶
func (s *PhraseSearcher) Count() uint64
func (*PhraseSearcher) DocumentMatchPoolSize ¶ added in v0.4.0
func (s *PhraseSearcher) DocumentMatchPoolSize() int
func (*PhraseSearcher) Min ¶
func (s *PhraseSearcher) Min() int
func (*PhraseSearcher) Next ¶
func (s *PhraseSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
func (*PhraseSearcher) SetQueryNorm ¶
func (s *PhraseSearcher) SetQueryNorm(qnorm float64)
func (*PhraseSearcher) Weight ¶
func (s *PhraseSearcher) Weight() float64
type RegexpSearcher ¶
type RegexpSearcher struct {
// contains filtered or unexported fields
}
func NewRegexpSearcher ¶
func NewRegexpSearcher(indexReader index.IndexReader, pattern *regexp.Regexp, field string, boost float64, explain bool) (*RegexpSearcher, error)
func (*RegexpSearcher) Advance ¶
func (s *RegexpSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
func (*RegexpSearcher) Close ¶
func (s *RegexpSearcher) Close() error
func (*RegexpSearcher) Count ¶
func (s *RegexpSearcher) Count() uint64
func (*RegexpSearcher) DocumentMatchPoolSize ¶ added in v0.4.0
func (s *RegexpSearcher) DocumentMatchPoolSize() int
func (*RegexpSearcher) Min ¶
func (s *RegexpSearcher) Min() int
func (*RegexpSearcher) Next ¶
func (s *RegexpSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
func (*RegexpSearcher) SetQueryNorm ¶
func (s *RegexpSearcher) SetQueryNorm(qnorm float64)
func (*RegexpSearcher) Weight ¶
func (s *RegexpSearcher) Weight() float64
type TermPrefixSearcher ¶
type TermPrefixSearcher struct {
// contains filtered or unexported fields
}
func NewTermPrefixSearcher ¶
func NewTermPrefixSearcher(indexReader index.IndexReader, prefix string, field string, boost float64, explain bool) (*TermPrefixSearcher, error)
func (*TermPrefixSearcher) Advance ¶
func (s *TermPrefixSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
func (*TermPrefixSearcher) Close ¶
func (s *TermPrefixSearcher) Close() error
func (*TermPrefixSearcher) Count ¶
func (s *TermPrefixSearcher) Count() uint64
func (*TermPrefixSearcher) DocumentMatchPoolSize ¶ added in v0.4.0
func (s *TermPrefixSearcher) DocumentMatchPoolSize() int
func (*TermPrefixSearcher) Min ¶
func (s *TermPrefixSearcher) Min() int
func (*TermPrefixSearcher) Next ¶
func (s *TermPrefixSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
func (*TermPrefixSearcher) SetQueryNorm ¶
func (s *TermPrefixSearcher) SetQueryNorm(qnorm float64)
func (*TermPrefixSearcher) Weight ¶
func (s *TermPrefixSearcher) Weight() float64
type TermSearcher ¶
type TermSearcher struct {
// contains filtered or unexported fields
}
func NewTermSearcher ¶
func NewTermSearcher(indexReader index.IndexReader, term string, field string, boost float64, explain bool) (*TermSearcher, error)
func (*TermSearcher) Advance ¶
func (s *TermSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error)
func (*TermSearcher) Close ¶
func (s *TermSearcher) Close() error
func (*TermSearcher) Count ¶
func (s *TermSearcher) Count() uint64
func (*TermSearcher) DocumentMatchPoolSize ¶ added in v0.4.0
func (s *TermSearcher) DocumentMatchPoolSize() int
func (*TermSearcher) Min ¶
func (s *TermSearcher) Min() int
func (*TermSearcher) Next ¶
func (s *TermSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error)
func (*TermSearcher) SetQueryNorm ¶
func (s *TermSearcher) SetQueryNorm(qnorm float64)
func (*TermSearcher) Weight ¶
func (s *TermSearcher) Weight() float64
Click to show internal directories.
Click to hide internal directories.