Package org.apache.lucene.facet.taxonomy
Class FastTaxonomyFacetCounts
- java.lang.Object
-
- org.apache.lucene.facet.Facets
-
- org.apache.lucene.facet.taxonomy.TaxonomyFacets
-
- org.apache.lucene.facet.taxonomy.FastTaxonomyFacetCounts
-
public class FastTaxonomyFacetCounts extends TaxonomyFacets
Computes facets counts, assuming the default encoding into DocValues was used.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
TaxonomyFacets.AggregatedValue
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
config, indexFieldName, taxoReader, valueComparator
-
-
Constructor Summary
Constructors Constructor Description FastTaxonomyFacetCounts(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc)
CreateFastTaxonomyFacetCounts
, using the specifiedindexFieldName
for ordinals.FastTaxonomyFacetCounts(String indexFieldName, IndexReader reader, TaxonomyReader taxoReader, FacetsConfig config)
CreateFastTaxonomyFacetCounts
, using the specifiedindexFieldName
for ordinals, and counting all non-deleted documents in the index.FastTaxonomyFacetCounts(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc)
CreateFastTaxonomyFacetCounts
, which also counts all facet labels.
-
Method Summary
-
Methods inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
aggregate, childrenLoaded, getAggregationValue, getAllChildren, getAllDims, getCount, getSpecificValue, getTopChildren, getTopChildrenForPath, getTopDims, initializeValueCounters, insertIntoQueue, makeTopOrdAndNumberQueue, missingAggregationValue, newAggregatedValue, rollup, setCount, setIncomingValue, siblingsLoaded, updateValueFromRollup, useHashTable, verifyDim
-
Methods inherited from class org.apache.lucene.facet.Facets
validateTopN
-
-
-
-
Constructor Detail
-
FastTaxonomyFacetCounts
public FastTaxonomyFacetCounts(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) throws IOException
CreateFastTaxonomyFacetCounts
, which also counts all facet labels.- Throws:
IOException
-
FastTaxonomyFacetCounts
public FastTaxonomyFacetCounts(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc) throws IOException
CreateFastTaxonomyFacetCounts
, using the specifiedindexFieldName
for ordinals. Use this if you had setFacetsConfig.setIndexFieldName(java.lang.String, java.lang.String)
to change the index field name for certain dimensions.- Throws:
IOException
-
FastTaxonomyFacetCounts
public FastTaxonomyFacetCounts(String indexFieldName, IndexReader reader, TaxonomyReader taxoReader, FacetsConfig config) throws IOException
CreateFastTaxonomyFacetCounts
, using the specifiedindexFieldName
for ordinals, and counting all non-deleted documents in the index. This is the same result as searching onMatchAllDocsQuery
, but faster- Throws:
IOException
-
-