scorer

package
v0.0.0-...-0b1034d Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

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 (*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(options search.SearcherOptions) *DisjunctionQueryScorer

func (*DisjunctionQueryScorer) Score

func (s *DisjunctionQueryScorer) Score(ctx *search.SearchContext, constituents []*search.DocumentMatch, countMatch, countTotal int) *search.DocumentMatch

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 (*TermQueryScorer) SetQueryNorm

func (s *TermQueryScorer) SetQueryNorm(qnorm float64)

func (*TermQueryScorer) Weight

func (s *TermQueryScorer) Weight() float64

Jump to

Keyboard shortcuts

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