Class DoubleRangeFacetCounts

java.lang.Object
org.apache.lucene.facet.Facets
org.apache.lucene.facet.range.DoubleRangeFacetCounts

public class DoubleRangeFacetCounts extends Facets
Facets implementation that computes counts for dynamic double ranges from a provided ValueSource, using FunctionValues.doubleVal(int). Use this for dimensions that change in real-time (e.g. a relative time based dimension like "Past day", "Past 2 days", etc.) or that change for each request (e.g. distance from the user's location, "invalid input: '<' 1 km", "invalid input: '<' 2 km", etc.).

If you had indexed your field using FloatDocValuesField then pass FloatFieldSource as the ValueSource; if you used DoubleDocValuesField then pass DoubleFieldSource (this is the default used when you pass just a the field name).