Uses of Class
org.apache.lucene.facet.FacetsCollector
Package
Description
Faceted search.
Provides range faceting capabilities.
Provides faceting capabilities over facets that were indexed with
SortedSetDocValuesFacetField
.Taxonomy of Categories.
-
Uses of FacetsCollector in org.apache.lucene.facet
Modifier and TypeClassDescriptionclass
Collects hits for subsequent faceting, using sampling if needed.Modifier and TypeFieldDescriptionfinal FacetsCollector
DrillSideways.DrillSidewaysResult.drillDownFacetsCollector
FacetsCollector populated based on hits that match the full DrillDownQuery, treating all drill down dimensions as required clauses.final FacetsCollector[]
DrillSideways.DrillSidewaysResult.drillSidewaysFacetsCollector
FacetsCollectors populated for each drill sideways dimension.Modifier and TypeMethodDescriptionprotected FacetsCollector
DrillSideways.createDrillDownFacetsCollector()
Subclass can override to customize drill down facets collector.FacetsCollectorManager.newCollector()
FacetsCollectorManager.reduce
(Collection<FacetsCollector> collectors) Modifier and TypeMethodDescriptionprotected Facets
DrillSideways.buildFacetsResult
(FacetsCollector drillDowns, FacetsCollector[] drillSideways, String[] drillSidewaysDims) Subclass can override to customize per-dim Facets impl.Modifier and TypeMethodDescriptionFacetsCollectorManager.reduce
(Collection<FacetsCollector> collectors) ModifierConstructorDescriptionDrillSidewaysResult
(Facets facets, TopDocs hits, FacetsCollector drillDownFacetsCollector, FacetsCollector[] drillSidewaysFacetsCollector, String[] drillSidewaysDims) Sole constructor.LongValueFacetCounts
(String field, FacetsCollector hits) CreateLongValueFacetCounts
, using either single-valuedNumericDocValues
or multi-valuedSortedNumericDocValues
from the specified field (depending on what has been indexed).LongValueFacetCounts
(String field, MultiLongValuesSource valuesSource, FacetsCollector hits) CreateLongValueFacetCounts
, using the providedMultiLongValuesSource
if non-null.LongValueFacetCounts
(String field, LongValuesSource valueSource, FacetsCollector hits) CreateLongValueFacetCounts
, using the providedLongValuesSource
if non-null.StringValueFacetCounts
(StringDocValuesReaderState state, FacetsCollector facetsCollector) Counts facets across the provided hits. -
Uses of FacetsCollector in org.apache.lucene.facet.range
ModifierConstructorDescriptionDoubleRangeFacetCounts
(String field, FacetsCollector hits, DoubleRange... ranges) CreateRangeFacetCounts
, using double value from the specified field.DoubleRangeFacetCounts
(String field, MultiDoubleValuesSource valuesSource, FacetsCollector hits, DoubleRange... ranges) CreateRangeFacetCounts
, using the providedMultiDoubleValuesSource
if non-null.DoubleRangeFacetCounts
(String field, MultiDoubleValuesSource valuesSource, FacetsCollector hits, Query fastMatchQuery, DoubleRange... ranges) CreateRangeFacetCounts
, using the providedMultiDoubleValuesSource
if non-null.DoubleRangeFacetCounts
(String field, DoubleValuesSource valueSource, FacetsCollector hits, DoubleRange... ranges) CreateRangeFacetCounts
, using the providedDoubleValuesSource
if non-null.DoubleRangeFacetCounts
(String field, DoubleValuesSource valueSource, FacetsCollector hits, Query fastMatchQuery, DoubleRange... ranges) CreateRangeFacetCounts
, using the providedDoubleValuesSource
if non-null.LongRangeFacetCounts
(String field, FacetsCollector hits, LongRange... ranges) CreateLongRangeFacetCounts
using long values from the specified field.LongRangeFacetCounts
(String field, MultiLongValuesSource valuesSource, FacetsCollector hits, LongRange... ranges) CreateLongRangeFacetCounts
, using the providedMultiLongValuesSource
if non-null.LongRangeFacetCounts
(String field, MultiLongValuesSource valuesSource, FacetsCollector hits, Query fastMatchQuery, LongRange... ranges) CreateLongRangeFacetCounts
, using the providedMultiLongValuesSource
if non-null.LongRangeFacetCounts
(String field, LongValuesSource valueSource, FacetsCollector hits, LongRange... ranges) CreateLongRangeFacetCounts
, using the providedLongValuesSource
if non-null.LongRangeFacetCounts
(String field, LongValuesSource valueSource, FacetsCollector hits, Query fastMatchQuery, LongRange... ranges) CreateLongRangeFacetCounts
, using the providedLongValuesSource
if non-null. -
Uses of FacetsCollector in org.apache.lucene.facet.sortedset
ModifierConstructorDescriptionConcurrentSortedSetDocValuesFacetCounts
(SortedSetDocValuesReaderState state, FacetsCollector hits, ExecutorService exec) Counts all facet dimensions across the provided hits.Counts all facet dimensions across the provided hits. -
Uses of FacetsCollector in org.apache.lucene.facet.taxonomy
Modifier and TypeMethodDescriptionprotected boolean
IntTaxonomyFacets.useHashTable
(FacetsCollector fc, TaxonomyReader taxoReader) Deprecated.Return true if a sparse hash table should be used for counting, instead of a dense int[].ModifierConstructorDescriptionFastTaxonomyFacetCounts
(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) CreateFastTaxonomyFacetCounts
, using the specifiedindexFieldName
for ordinals.FastTaxonomyFacetCounts
(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) CreateFastTaxonomyFacetCounts
, which also counts all facet labels.protected
IntTaxonomyFacets
(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) Deprecated.Sole constructor.TaxonomyFacetCounts
(OrdinalsReader ordinalsReader, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) Deprecated.CreateTaxonomyFacetCounts
, which also counts all facet labels.TaxonomyFacetSumFloatAssociations
(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) CreateTaxonomyFacetSumFloatAssociations
against the specified index field.TaxonomyFacetSumFloatAssociations
(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) CreateTaxonomyFacetSumFloatAssociations
against the default index field.TaxonomyFacetSumIntAssociations
(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) CreateTaxonomyFacetSumIntAssociations
against the specified index field.TaxonomyFacetSumIntAssociations
(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) CreateTaxonomyFacetSumIntAssociations
against the default index field.TaxonomyFacetSumValueSource
(String indexField, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, DoubleValuesSource valueSource) Aggreggates double facet values from the providedDoubleValuesSource
, pulling ordinals from the specified indexed facet field.TaxonomyFacetSumValueSource
(OrdinalsReader ordinalsReader, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, DoubleValuesSource vs) Deprecated.Custom binary encodings for taxonomy ordinals are no longer supported starting with Lucene 9TaxonomyFacetSumValueSource
(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, DoubleValuesSource valueSource) Aggreggates double facet values from the providedDoubleValuesSource
, pulling ordinals from the default indexed facet fieldFacetsConfig.DEFAULT_INDEX_FIELD_NAME
.