Show / Hide Table of Contents

    Class DoubleRangeFacetCounts

    Facets implementation that computes counts for dynamic double ranges from a provided ValueSource, using DoubleVal(Int32) or DoubleVal(Int32, Double[]). 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 had indexed your field using then pass SingleFieldSource as the ValueSource; if you used then pass DoubleFieldSource (this is the default used when you pass just a the field name). @lucene.experimental

    Inheritance
    System.Object
    Facets
    RangeFacetCounts
    DoubleRangeFacetCounts
    Inherited Members
    RangeFacetCounts.m_ranges
    RangeFacetCounts.m_counts
    RangeFacetCounts.m_fastMatchFilter
    RangeFacetCounts.m_field
    RangeFacetCounts.m_totCount
    RangeFacetCounts.GetTopChildren(Int32, String, String[])
    RangeFacetCounts.GetSpecificValue(String, String[])
    RangeFacetCounts.GetAllDims(Int32)
    Namespace: Lucene.Net.Facet.Range
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public class DoubleRangeFacetCounts : RangeFacetCounts

    Constructors

    | Improve this Doc View Source

    DoubleRangeFacetCounts(String, FacetsCollector, DoubleRange[])

    Create RangeFacetCounts, using DoubleFieldSource from the specified field.

    Declaration
    public DoubleRangeFacetCounts(string field, FacetsCollector hits, params DoubleRange[] ranges)
    Parameters
    Type Name Description
    System.String field
    FacetsCollector hits
    DoubleRange[] ranges
    | Improve this Doc View Source

    DoubleRangeFacetCounts(String, ValueSource, FacetsCollector, DoubleRange[])

    Create RangeFacetCounts, using the provided ValueSource.

    Declaration
    public DoubleRangeFacetCounts(string field, ValueSource valueSource, FacetsCollector hits, params DoubleRange[] ranges)
    Parameters
    Type Name Description
    System.String field
    ValueSource valueSource
    FacetsCollector hits
    DoubleRange[] ranges
    | Improve this Doc View Source

    DoubleRangeFacetCounts(String, ValueSource, FacetsCollector, Search.Filter, DoubleRange[])

    Create RangeFacetCounts, using the provided ValueSource, and using the provided Filter as a fastmatch: only documents passing the filter are checked for the matching ranges. The filter must be random access (implement ).

    Declaration
    public DoubleRangeFacetCounts(string field, ValueSource valueSource, FacetsCollector hits, Search.Filter fastMatchFilter, params DoubleRange[] ranges)
    Parameters
    Type Name Description
    System.String field
    ValueSource valueSource
    FacetsCollector hits
    Search.Filter fastMatchFilter
    DoubleRange[] ranges
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)