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

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

Inheritance: RangeFacetCounts
Datei anzeigen Open project: apache/lucenenet Class Usage Examples

Public Methods

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

Create RangeFacetCounts, using DoubleFieldSource from the specified field.

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

Create RangeFacetCounts, using the provided ValueSource.

DoubleRangeFacetCounts ( string field, ValueSource valueSource, FacetsCollector hits, Filter fastMatchFilter, Lucene.Net.Facet.Range.DoubleRange ranges ) : 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, IEnumerable matchingDocs ) : void

Method Details

DoubleRangeFacetCounts() public method

Create RangeFacetCounts, using DoubleFieldSource from the specified field.
public DoubleRangeFacetCounts ( string field, FacetsCollector hits ) : System.Collections.Generic
field string
hits FacetsCollector
return System.Collections.Generic

DoubleRangeFacetCounts() public method

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

DoubleRangeFacetCounts() 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 DoubleRangeFacetCounts ( string field, ValueSource valueSource, FacetsCollector hits, Filter fastMatchFilter, Lucene.Net.Facet.Range.DoubleRange ranges ) : System.Collections.Generic
field string
valueSource ValueSource
hits FacetsCollector
fastMatchFilter Filter
ranges Lucene.Net.Facet.Range.DoubleRange
return System.Collections.Generic