bleve: github.com/blevesearch/bleve/search/scorer Index | Files

package scorer

import "github.com/blevesearch/bleve/search/scorer"

Index

Package Files

scorer_conjunction.go scorer_constant.go scorer_disjunction.go scorer_term.go sqrt_cache.go

Constants

const MaxSqrtCache = 64

Variables

var SqrtCache []float64

type ConjunctionQueryScorer Uses

type ConjunctionQueryScorer struct {
    // contains filtered or unexported fields
}

func NewConjunctionQueryScorer Uses

func NewConjunctionQueryScorer(options search.SearcherOptions) *ConjunctionQueryScorer

func (*ConjunctionQueryScorer) Score Uses

func (s *ConjunctionQueryScorer) Score(ctx *search.SearchContext, constituents []*search.DocumentMatch) *search.DocumentMatch

func (*ConjunctionQueryScorer) Size Uses

func (s *ConjunctionQueryScorer) Size() int

type ConstantScorer Uses

type ConstantScorer struct {
    // contains filtered or unexported fields
}

func NewConstantScorer Uses

func NewConstantScorer(constant float64, boost float64, options search.SearcherOptions) *ConstantScorer

func (*ConstantScorer) Score Uses

func (s *ConstantScorer) Score(ctx *search.SearchContext, id index.IndexInternalID) *search.DocumentMatch

func (*ConstantScorer) SetQueryNorm Uses

func (s *ConstantScorer) SetQueryNorm(qnorm float64)

func (*ConstantScorer) Size Uses

func (s *ConstantScorer) Size() int

func (*ConstantScorer) Weight Uses

func (s *ConstantScorer) Weight() float64

type DisjunctionQueryScorer Uses

type DisjunctionQueryScorer struct {
    // contains filtered or unexported fields
}

func NewDisjunctionQueryScorer Uses

func NewDisjunctionQueryScorer(options search.SearcherOptions) *DisjunctionQueryScorer

func (*DisjunctionQueryScorer) Score Uses

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

func (*DisjunctionQueryScorer) Size Uses

func (s *DisjunctionQueryScorer) Size() int

type TermQueryScorer Uses

type TermQueryScorer struct {
    // contains filtered or unexported fields
}

func NewTermQueryScorer Uses

func NewTermQueryScorer(queryTerm []byte, queryField string, queryBoost float64, docTotal, docTerm uint64, options search.SearcherOptions) *TermQueryScorer

func (*TermQueryScorer) Score Uses

func (s *TermQueryScorer) Score(ctx *search.SearchContext, termMatch *index.TermFieldDoc) *search.DocumentMatch

func (*TermQueryScorer) SetQueryNorm Uses

func (s *TermQueryScorer) SetQueryNorm(qnorm float64)

func (*TermQueryScorer) Size Uses

func (s *TermQueryScorer) Size() int

func (*TermQueryScorer) Weight Uses

func (s *TermQueryScorer) Weight() float64

Package scorer imports 6 packages (graph) and is imported by 12 packages. Updated 2018-10-23. Refresh now. Tools for package owners.