DoubleValuesSource
Base class for producing DoubleValues
To obtain a DoubleValues object for a leaf reader, clients should call .rewrite against the top-level searcher, and then call .getValues on the resulting DoubleValuesSource.
DoubleValuesSource objects for NumericDocValues fields can be obtained by calling .fromDoubleField, .fromFloatField, .fromIntField or .fromLongField, or from .fromField if special long-to-double encoding is required.
Scores may be used as a source for value calculations by wrapping a Scorer using .fromScorer and passing the resulting DoubleValues to .getValues. The scores can then be accessed using the .SCORES DoubleValuesSource.
Functions
An explanation of the value for the named document.
Create a sort field based on the value of this producer
Returns a DoubleValues instance for the passed-in LeafReaderContext and scores
Return true if document scores are needed to calculate values
Return a DoubleValuesSource specialised for the given IndexSearcher
Convert to a LongValuesSource by casting the double values to longs
Convert to LongValuesSource by calling NumericUtils.doubleToSortableLong