Package org.apache.lucene.facet.taxonomy
Class TaxonomyFacetSumValueSource
java.lang.Object
org.apache.lucene.facet.Facets
org.apache.lucene.facet.taxonomy.TaxonomyFacets
org.apache.lucene.facet.taxonomy.FloatTaxonomyFacets
org.apache.lucene.facet.taxonomy.TaxonomyFacetFloatAssociations
org.apache.lucene.facet.taxonomy.TaxonomyFacetSumValueSource
Deprecated.
Aggregates sum of values from
DoubleValues.doubleValue()
, for each facet label.- 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.FloatTaxonomyFacets
aggregationFunction, values
Fields inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
config, indexFieldName, parents, taxoReader
-
Constructor Summary
ConstructorDescriptionTaxonomyFacetSumValueSource
(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
. -
Method Summary
Methods inherited from class org.apache.lucene.facet.taxonomy.FloatTaxonomyFacets
getAllChildren, getSpecificValue, getTopChildren, getTopDims, rollup
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
-
TaxonomyFacetSumValueSource
public TaxonomyFacetSumValueSource(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, DoubleValuesSource valueSource) throws IOException Deprecated.Aggregates double facet values from the providedDoubleValuesSource
, pulling ordinals from the default indexed facet fieldFacetsConfig.DEFAULT_INDEX_FIELD_NAME
.- Throws:
IOException
-
TaxonomyFacetSumValueSource
public TaxonomyFacetSumValueSource(String indexField, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, DoubleValuesSource valueSource) throws IOException Deprecated.Aggregates double facet values from the providedDoubleValuesSource
, pulling ordinals from the specified indexed facet field.- Throws:
IOException
-
TaxonomyFacetSumValueSource
@Deprecated public TaxonomyFacetSumValueSource(OrdinalsReader ordinalsReader, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, DoubleValuesSource vs) throws IOException Deprecated.Custom binary encodings for taxonomy ordinals are no longer supported starting with Lucene 9Aggregates float facet values from the providedDoubleValuesSource
, and pulls ordinals from the providedOrdinalsReader
.- Throws:
IOException
-
TaxonomyFacetFloatAssociations
, which provides more flexible aggregation functionality beyond just "sum"