Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class DoubleRangeFacetCounts

    Facets implementation that computes counts for dynamic double ranges from a provided Lucene.Net.Queries.Function.ValueSource, using DoubleVal(int) or DoubleVal(int, 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 Lucene.Net.Documents.SingleDocValuesField then pass Lucene.Net.Queries.Function.ValueSources.SingleFieldSource as the Lucene.Net.Queries.Function.ValueSource; if you used Lucene.Net.Documents.DoubleDocValuesField then pass Lucene.Net.Queries.Function.ValueSources.DoubleFieldSource (this is the default used when you pass just a the field name).

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    Facets
    RangeFacetCounts
    DoubleRangeFacetCounts
    Inherited Members
    RangeFacetCounts.m_ranges
    RangeFacetCounts.m_counts
    RangeFacetCounts.m_fastMatchFilter
    RangeFacetCounts.m_field
    RangeFacetCounts.m_totCount
    RangeFacetCounts.GetTopChildren(int, string, params string[])
    RangeFacetCounts.GetSpecificValue(string, params string[])
    RangeFacetCounts.GetAllDims(int)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Facet.Range
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public class DoubleRangeFacetCounts : RangeFacetCounts

    Constructors

    DoubleRangeFacetCounts(string, FacetsCollector, params DoubleRange[])

    Create RangeFacetCounts, using Lucene.Net.Queries.Function.ValueSources.DoubleFieldSource from the specified field.

    Declaration
    public DoubleRangeFacetCounts(string field, FacetsCollector hits, params DoubleRange[] ranges)
    Parameters
    Type Name Description
    string field
    FacetsCollector hits
    DoubleRange[] ranges

    DoubleRangeFacetCounts(string, ValueSource, FacetsCollector, params DoubleRange[])

    Create RangeFacetCounts, using the provided Lucene.Net.Queries.Function.ValueSource.

    Declaration
    public DoubleRangeFacetCounts(string field, ValueSource valueSource, FacetsCollector hits, params DoubleRange[] ranges)
    Parameters
    Type Name Description
    string field
    ValueSource valueSource
    FacetsCollector hits
    DoubleRange[] ranges

    DoubleRangeFacetCounts(string, ValueSource, FacetsCollector, Filter, params DoubleRange[])

    Create RangeFacetCounts, using the provided Lucene.Net.Queries.Function.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 Lucene.Net.Search.DocIdSet.Bits).

    Declaration
    public DoubleRangeFacetCounts(string field, ValueSource valueSource, FacetsCollector hits, Filter fastMatchFilter, params DoubleRange[] ranges)
    Parameters
    Type Name Description
    string field
    ValueSource valueSource
    FacetsCollector hits
    Filter fastMatchFilter
    DoubleRange[] ranges
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.