Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Int64RangeFacetCounts

    Facets implementation that computes counts for dynamic long ranges from a provided Lucene.Net.Queries.Function.ValueSource, using Lucene.Net.Queries.Function.FunctionValues.Int64Val(System.Int32) or Lucene.Net.Queries.Function.FunctionValues.Int64Val(System.Int32,System.Int64[]). 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.).

    NOTE: This was LongRangeFacetCounts in Lucene

    Note

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

    Inheritance
    System.Object
    Facets
    RangeFacetCounts
    Int64RangeFacetCounts
    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)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Facet.Range
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public class Int64RangeFacetCounts : RangeFacetCounts

    Constructors

    | Improve this Doc View Source

    Int64RangeFacetCounts(String, FacetsCollector, Int64Range[])

    Create Int64RangeFacetCounts, using Lucene.Net.Queries.Function.ValueSources.Int64FieldSource from the specified field.

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

    Int64RangeFacetCounts(String, ValueSource, FacetsCollector, Int64Range[])

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

    Declaration
    public Int64RangeFacetCounts(string field, ValueSource valueSource, FacetsCollector hits, params Int64Range[] ranges)
    Parameters
    Type Name Description
    System.String field
    Lucene.Net.Queries.Function.ValueSource valueSource
    FacetsCollector hits
    Int64Range[] ranges
    | Improve this Doc View Source

    Int64RangeFacetCounts(String, ValueSource, FacetsCollector, Filter, Int64Range[])

    Create Int64RangeFacetCounts, 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 Int64RangeFacetCounts(string field, ValueSource valueSource, FacetsCollector hits, Filter fastMatchFilter, params Int64Range[] ranges)
    Parameters
    Type Name Description
    System.String field
    Lucene.Net.Queries.Function.ValueSource valueSource
    FacetsCollector hits
    Lucene.Net.Search.Filter fastMatchFilter
    Int64Range[] ranges
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.