Documentation ¶
Index ¶
Constants ¶
View Source
const MaxSqrtCache = 64
Variables ¶
View Source
var SqrtCache map[int]float64
Functions ¶
This section is empty.
Types ¶
type ConjunctionQueryScorer ¶
type ConjunctionQueryScorer struct {
// contains filtered or unexported fields
}
func NewConjunctionQueryScorer ¶
func NewConjunctionQueryScorer(explain bool) *ConjunctionQueryScorer
func (*ConjunctionQueryScorer) Score ¶
func (s *ConjunctionQueryScorer) Score(constituents []*search.DocumentMatch) *search.DocumentMatch
type ConstantScorer ¶
type ConstantScorer struct {
// contains filtered or unexported fields
}
func NewConstantScorer ¶
func NewConstantScorer(constant float64, boost float64, explain bool) *ConstantScorer
func (*ConstantScorer) Score ¶
func (s *ConstantScorer) Score(id string) *search.DocumentMatch
func (*ConstantScorer) SetQueryNorm ¶
func (s *ConstantScorer) SetQueryNorm(qnorm float64)
func (*ConstantScorer) Weight ¶
func (s *ConstantScorer) Weight() float64
type DisjunctionQueryScorer ¶
type DisjunctionQueryScorer struct {
// contains filtered or unexported fields
}
func NewDisjunctionQueryScorer ¶
func NewDisjunctionQueryScorer(explain bool) *DisjunctionQueryScorer
func (*DisjunctionQueryScorer) Score ¶
func (s *DisjunctionQueryScorer) Score(constituents []*search.DocumentMatch, countMatch, countTotal int) *search.DocumentMatch
type TermQueryScorer ¶
type TermQueryScorer struct {
// contains filtered or unexported fields
}
func NewTermQueryScorer ¶
func (*TermQueryScorer) Score ¶
func (s *TermQueryScorer) Score(termMatch *index.TermFieldDoc) *search.DocumentMatch
func (*TermQueryScorer) SetQueryNorm ¶
func (s *TermQueryScorer) SetQueryNorm(qnorm float64)
func (*TermQueryScorer) Weight ¶
func (s *TermQueryScorer) Weight() float64
Click to show internal directories.
Click to hide internal directories.