C# Class Lucene.Net.Facet.Range.LongRangeFacetCounts

Facets implementation that computes counts for dynamic long ranges from a provided ValueSource, using FunctionValues#longVal. 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.). @lucene.experimental
Inheritance: RangeFacetCounts
Mostra file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
LongRangeFacetCounts ( string field, FacetsCollector hits ) : System.Collections.Generic

Create LongRangeFacetCounts, using LongFieldSource from the specified field.

LongRangeFacetCounts ( string field, ValueSource valueSource, FacetsCollector hits ) : System.Collections.Generic

Create RangeFacetCounts, using the provided ValueSource.

LongRangeFacetCounts ( string field, ValueSource valueSource, FacetsCollector hits, Filter fastMatchFilter ) : System.Collections.Generic

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 DocIdSet.GetBits).

Private Methods

Method Description
Count ( ValueSource valueSource, IList matchingDocs ) : void

Method Details

LongRangeFacetCounts() public method

Create LongRangeFacetCounts, using LongFieldSource from the specified field.
public LongRangeFacetCounts ( string field, FacetsCollector hits ) : System.Collections.Generic
field string
hits Lucene.Net.Facet.FacetsCollector
return System.Collections.Generic

LongRangeFacetCounts() public method

Create RangeFacetCounts, using the provided ValueSource.
public LongRangeFacetCounts ( string field, ValueSource valueSource, FacetsCollector hits ) : System.Collections.Generic
field string
valueSource ValueSource
hits Lucene.Net.Facet.FacetsCollector
return System.Collections.Generic

LongRangeFacetCounts() public method

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 DocIdSet.GetBits).
public LongRangeFacetCounts ( string field, ValueSource valueSource, FacetsCollector hits, Filter fastMatchFilter ) : System.Collections.Generic
field string
valueSource ValueSource
hits Lucene.Net.Facet.FacetsCollector
fastMatchFilter Filter
return System.Collections.Generic