Section navigation

Public classAbstract DoubleValuesSource

Namespace
Rowles.LeanCorpus.Search.Scoring
Assembly
Rowles.LeanCorpus.dll

Produces a double value for a document, optionally using its query score.

public abstract class DoubleValuesSource
Inheritance
DoubleValuesSource

Public property NeedsScores

Gets whether this source needs the current query score.

Public property Scores

A source that returns the current query score.

Public method Add(DoubleValuesSource)

Adds this source to another source.

Public method Constant(double)

Creates a source that always returns the supplied value.

Public method Divide(DoubleValuesSource)

Divides this source by another source.

Public method FromDoubleField(string)

Creates a source backed by a double-valued numeric field.

Public method FromInt64Field(string)

Creates a source backed by a 64-bit integer field.

Public method Multiply(DoubleValuesSource)

Multiplies this source by another source.

Public method Rewrite(IndexSearcher)

Specialises this source for a searcher snapshot.

Public method Subtract(DoubleValuesSource)

Subtracts another source from this source.

Public method TryGetValue(IndexSearcher, int, double, out double)

Gets a value for one global document identifier.