Uses of Class
org.apache.lucene.facet.FacetsCollector
Packages that use FacetsCollector
Package
Description
Faceted search.
Provides FacetSets faceting capabilities which allows users to facet on high dimensional field
values.
Provides range faceting capabilities.
Provides range on range faceting capabilities.
Provides faceting capabilities over facets that were indexed with
SortedSetDocValuesFacetField
.Taxonomy of Categories.
-
Uses of FacetsCollector in org.apache.lucene.facet
Subclasses of FacetsCollector in org.apache.lucene.facetModifier and TypeClassDescriptionprivate static class
class
Collects hits for subsequent faceting, using sampling if needed.private static class
Fields in org.apache.lucene.facet declared as FacetsCollectorModifier 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.private final FacetsCollector
FacetsCollectorManager.FacetsResult.facetsCollector
Methods in org.apache.lucene.facet that return FacetsCollectorModifier and TypeMethodDescriptionprotected FacetsCollector
DrillSideways.createDrillDownFacetsCollector()
Deprecated.FacetsCollectorManager.FacetsResult.facetsCollector()
Exposes the facet resultsFacetsCollectorManager.newCollector()
FacetsCollectorManager.reduce
(Collection<FacetsCollector> collectors) Methods in org.apache.lucene.facet with parameters of type FacetsCollectorModifier and TypeMethodDescriptionprotected Facets
DrillSideways.buildFacetsResult
(FacetsCollector drillDowns, FacetsCollector[] drillSideways, String[] drillSidewaysDims) Subclass can override to customize per-dim Facets impl.private void
StringValueFacetCounts.count
(FacetsCollector facetsCollector) Method parameters in org.apache.lucene.facet with type arguments of type FacetsCollectorModifier and TypeMethodDescriptionFacetsCollectorManager.reduce
(Collection<FacetsCollector> collectors) Constructors in org.apache.lucene.facet with parameters of type FacetsCollectorModifierConstructorDescription(package private)
ConcurrentDrillSidewaysResult
(Facets facets, TopDocs hits, R collectorResult, FacetsCollector drillDownFacetsCollector, FacetsCollector[] drillSidewaysFacetsCollector, String[] drillSidewaysDims) Sole constructor.DrillSidewaysResult
(Facets facets, TopDocs hits, FacetsCollector drillDownFacetsCollector, FacetsCollector[] drillSidewaysFacetsCollector, String[] drillSidewaysDims) Sole constructor.FacetsResult
(TopDocs topDocs, FacetsCollector facetsCollector) Create a new instance of this class.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.Constructor parameters in org.apache.lucene.facet with type arguments of type FacetsCollectorModifierConstructorDescription(package private)
ReducedFacetsCollector
(Collection<FacetsCollector> facetsCollectors, boolean keepScores) -
Uses of FacetsCollector in org.apache.lucene.facet.facetset
Constructors in org.apache.lucene.facet.facetset with parameters of type FacetsCollectorModifierConstructorDescriptionMatchingFacetSetsCounts
(String field, FacetsCollector hits, FacetSetDecoder facetSetDecoder, FacetSetMatcher... facetSetMatchers) Constructs a new instance of matching facet set counts which calculates the counts for each given facet set matcher.MatchingFacetSetsCounts
(String field, FacetsCollector hits, FacetSetDecoder facetSetDecoder, Query fastMatchQuery, FacetSetMatcher... facetSetMatchers) Constructs a new instance of matching facet set counts which calculates the counts for each given facet set matcher. -
Uses of FacetsCollector in org.apache.lucene.facet.range
Methods in org.apache.lucene.facet.range with parameters of type FacetsCollectorModifier and TypeMethodDescriptionDynamicRangeUtil.computeDynamicRanges
(String weightFieldName, LongValuesSource weightValueSource, LongValuesSource fieldValueSource, FacetsCollector facetsCollector, int topN, ExecutorService exec) Construct dynamic ranges using the specified weight field to generate equi-weight range for the specified numeric bin fieldConstructors in org.apache.lucene.facet.range with parameters of type FacetsCollectorModifierConstructorDescriptionDoubleRangeFacetCounts
(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.rangeonrange
Constructors in org.apache.lucene.facet.rangeonrange with parameters of type FacetsCollectorModifierConstructorDescriptionDoubleRangeOnRangeFacetCounts
(String field, FacetsCollector hits, RangeFieldQuery.QueryType queryType, DoubleRange... ranges) Constructor without the fast match query, see other constructor description for more details.DoubleRangeOnRangeFacetCounts
(String field, FacetsCollector hits, RangeFieldQuery.QueryType queryType, Query fastMatchQuery, DoubleRange... ranges) Represents counts for double range on range faceting.LongRangeOnRangeFacetCounts
(String field, FacetsCollector hits, RangeFieldQuery.QueryType queryType, LongRange... ranges) Constructor without the fast match query, see other constructor description for more details.LongRangeOnRangeFacetCounts
(String field, FacetsCollector hits, RangeFieldQuery.QueryType queryType, Query fastMatchQuery, LongRange... ranges) Represents counts for long range on range faceting.protected
RangeOnRangeFacetCounts
(String field, FacetsCollector hits, RangeFieldQuery.QueryType queryType, Query fastMatchQuery, int numEncodedValueBytes, byte[][] encodedRanges, String[] labels) -
Uses of FacetsCollector in org.apache.lucene.facet.sortedset
Constructors in org.apache.lucene.facet.sortedset with parameters of type FacetsCollectorModifierConstructorDescriptionConcurrentSortedSetDocValuesFacetCounts
(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
Fields in org.apache.lucene.facet.taxonomy declared as FacetsCollectorModifier and TypeFieldDescription(package private) final FacetsCollector
TaxonomyFacets.fc
Deprecated.FacetsCollector
provided to the constructor.Methods in org.apache.lucene.facet.taxonomy with parameters of type FacetsCollectorModifier and TypeMethodDescriptionprotected boolean
TaxonomyFacets.useHashTable
(FacetsCollector fc, TaxonomyReader taxoReader) Deprecated.Return true if a sparse hash table should be used for counting, instead of a dense int[].Constructors in org.apache.lucene.facet.taxonomy with parameters of type FacetsCollectorModifierConstructorDescriptionFastTaxonomyFacetCounts
(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
FloatTaxonomyFacets
(String indexFieldName, TaxonomyReader taxoReader, AssociationAggregationFunction aggregationFunction, FacetsConfig config, FacetsCollector fc) Deprecated.Constructor that uses the provided aggregation function.protected
IntTaxonomyFacets
(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) Deprecated.Constructor that defaults the aggregation function toAssociationAggregationFunction.SUM
.protected
IntTaxonomyFacets
(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, AssociationAggregationFunction aggregationFunction, FacetsCollector fc) Deprecated.Constructor that uses the provided aggregation function.TaxonomyFacetCounts
(OrdinalsReader ordinalsReader, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) Deprecated.CreateTaxonomyFacetCounts
, which also counts all facet labels.TaxonomyFacetFloatAssociations
(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction) CreateTaxonomyFacetFloatAssociations
against the specified index field.TaxonomyFacetFloatAssociations
(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction, DoubleValuesSource valuesSource) CreateTaxonomyFacetFloatAssociations
against the specified index field.TaxonomyFacetFloatAssociations
(OrdinalsReader ordinalsReader, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction, DoubleValuesSource valuesSource) Deprecated.Custom binary encodings for taxonomy ordinals are no longer supported starting with Lucene 9TaxonomyFacetFloatAssociations
(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction) CreateTaxonomyFacetFloatAssociations
against the default index field.TaxonomyFacetFloatAssociations
(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction, DoubleValuesSource valuesSource) CreateTaxonomyFacetFloatAssociations
against the default index field.TaxonomyFacetIntAssociations
(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction) CreateTaxonomyFacetIntAssociations
against the specified index field.TaxonomyFacetIntAssociations
(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction) CreateTaxonomyFacetIntAssociations
against the default index field.(package private)
TaxonomyFacets
(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) Deprecated.Constructor with aFacetsCollector
, allowing lazy initialization of internal data structures.TaxonomyFacetSumFloatAssociations
(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) Deprecated.CreateTaxonomyFacetSumFloatAssociations
against the specified index field.TaxonomyFacetSumFloatAssociations
(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) Deprecated.CreateTaxonomyFacetSumFloatAssociations
against the default index field.TaxonomyFacetSumIntAssociations
(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) Deprecated.CreateTaxonomyFacetSumIntAssociations
against the specified index field.TaxonomyFacetSumIntAssociations
(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) Deprecated.CreateTaxonomyFacetSumIntAssociations
against the default index field.TaxonomyFacetSumValueSource
(String indexField, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, DoubleValuesSource valueSource) Deprecated.Aggregates 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) Deprecated.Aggregates double facet values from the providedDoubleValuesSource
, pulling ordinals from the default indexed facet fieldFacetsConfig.DEFAULT_INDEX_FIELD_NAME
.
DrillSideways.search(DrillDownQuery, Collector)
entry-point.