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.IntTaxonomyFacets
org.apache.lucene.facet.taxonomy.FastTaxonomyFacetCounts
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.
-
Field Summary
Fields inherited from class org.apache.lucene.facet.taxonomy.IntTaxonomyFacets
aggregationFunction, sparseValues, values
Fields inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
config, indexFieldName, parents, taxoReader
-
Constructor Summary
ConstructorDescriptionFastTaxonomyFacetCounts
(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.IntTaxonomyFacets
getAllChildren, getSpecificValue, getTopChildren, getTopDims, getValue, increment, increment, rollup, useHashTable
Methods inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
childrenLoaded, getAllDims, getChildren, getSiblings, siblingsLoaded, verifyDim
Methods inherited from class org.apache.lucene.facet.Facets
validateTopN
-
Constructor Details
-
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
-