Class DoubleRangeFacetCounts


  • public class DoubleRangeFacetCounts
    extends Facets
    Facets implementation that computes counts for dynamic double ranges from a provided DoubleValuesSource. 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, "< 1 km", "< 2 km", etc.). If you have indexed your field using FloatDocValuesField, then you should use a DoubleValuesSource generated from DoubleValuesSource.fromFloatField(String).
    WARNING: This API is experimental and might change in incompatible ways in the next release.