Documentation ¶
Index ¶
- Constants
- Variables
- type ConjunctionQueryScorer
- type ConstantScorer
- type DisjunctionQueryScorer
- func (s *DisjunctionQueryScorer) Score(ctx *search.SearchContext, constituents []*search.DocumentMatch, ...) *search.DocumentMatch
- func (s *DisjunctionQueryScorer) ScoreAndExplBreakdown(ctx *search.SearchContext, constituents []*search.DocumentMatch, ...) *search.DocumentMatch
- func (s *DisjunctionQueryScorer) Size() int
- type TermQueryScorer
Constants ¶
View Source
const MaxSqrtCache = 64
Variables ¶
View Source
var SqrtCache []float64
Functions ¶
This section is empty.
Types ¶
type ConjunctionQueryScorer ¶
type ConjunctionQueryScorer struct {
// contains filtered or unexported fields
}
func NewConjunctionQueryScorer ¶
func NewConjunctionQueryScorer(options search.SearcherOptions) *ConjunctionQueryScorer
func (*ConjunctionQueryScorer) Score ¶
func (s *ConjunctionQueryScorer) Score(ctx *search.SearchContext, constituents []*search.DocumentMatch) *search.DocumentMatch
func (*ConjunctionQueryScorer) Size ¶
func (s *ConjunctionQueryScorer) Size() int
type ConstantScorer ¶
type ConstantScorer struct {
// contains filtered or unexported fields
}
func NewConstantScorer ¶
func NewConstantScorer(constant float64, boost float64, options search.SearcherOptions) *ConstantScorer
func (*ConstantScorer) Score ¶
func (s *ConstantScorer) Score(ctx *search.SearchContext, id index.IndexInternalID) *search.DocumentMatch
func (*ConstantScorer) SetQueryNorm ¶
func (s *ConstantScorer) SetQueryNorm(qnorm float64)
func (*ConstantScorer) Size ¶
func (s *ConstantScorer) Size() int
func (*ConstantScorer) Weight ¶
func (s *ConstantScorer) Weight() float64
type DisjunctionQueryScorer ¶
type DisjunctionQueryScorer struct {
// contains filtered or unexported fields
}
func NewDisjunctionQueryScorer ¶
func NewDisjunctionQueryScorer(options search.SearcherOptions) *DisjunctionQueryScorer
func (*DisjunctionQueryScorer) Score ¶
func (s *DisjunctionQueryScorer) Score(ctx *search.SearchContext, constituents []*search.DocumentMatch, countMatch, countTotal int) *search.DocumentMatch
func (*DisjunctionQueryScorer) ScoreAndExplBreakdown ¶
func (s *DisjunctionQueryScorer) ScoreAndExplBreakdown(ctx *search.SearchContext, constituents []*search.DocumentMatch, matchingIdxs []int, originalPositions []int, countTotal int) *search.DocumentMatch
This method is used only when disjunction searcher is used over multiple KNN searchers, where only the score breakdown and the optional explanation breakdown is required. The final score and explanation is set when we finalize the KNN hits.
func (*DisjunctionQueryScorer) Size ¶
func (s *DisjunctionQueryScorer) Size() int
type TermQueryScorer ¶
type TermQueryScorer struct {
// contains filtered or unexported fields
}
func NewTermQueryScorer ¶
func NewTermQueryScorer(queryTerm []byte, queryField string, queryBoost float64, docTotal, docTerm uint64, options search.SearcherOptions) *TermQueryScorer
func (*TermQueryScorer) Score ¶
func (s *TermQueryScorer) Score(ctx *search.SearchContext, termMatch *index.TermFieldDoc) *search.DocumentMatch
func (*TermQueryScorer) SetQueryNorm ¶
func (s *TermQueryScorer) SetQueryNorm(qnorm float64)
func (*TermQueryScorer) Size ¶
func (s *TermQueryScorer) Size() int
func (*TermQueryScorer) Weight ¶
func (s *TermQueryScorer) Weight() float64
Click to show internal directories.
Click to hide internal directories.