Constructor DoubleRangeFacetCounts
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 |
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 |
DoubleRangeFacetCounts(String, ValueSource, FacetsCollector, 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 Bits).
Declaration
public DoubleRangeFacetCounts(string field, ValueSource valueSource, FacetsCollector hits, Filter fastMatchFilter, params DoubleRange[] ranges)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | |
ValueSource | valueSource | |
FacetsCollector | hits | |
Filter | fastMatchFilter | |
DoubleRange[] | ranges |