Package org.apache.lucene.facet.taxonomy
Class TaxonomyFacetFloatAssociations
- 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
-
- Direct Known Subclasses:
TaxonomyFacetSumFloatAssociations
,TaxonomyFacetSumValueSource
public class TaxonomyFacetFloatAssociations extends FloatTaxonomyFacets
Aggregates float values associated with facet fields. Supports two different approaches:- Fields can be indexed with
FloatAssociationFacetField
, associating weights with facet values at indexing time. - Fields can be indexed with
FacetField
and aDoubleValuesSource
can dynamically supply a weight from each doc. With this approach, the document's weight gets contributed to each facet value associated with the doc.
FloatAssociationFacetField
.- 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
Constructors Constructor Description 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.
-
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 Detail
-
TaxonomyFacetFloatAssociations
public TaxonomyFacetFloatAssociations(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction) throws IOException
CreateTaxonomyFacetFloatAssociations
against the default index field.- Throws:
IOException
-
TaxonomyFacetFloatAssociations
public TaxonomyFacetFloatAssociations(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction, DoubleValuesSource valuesSource) throws IOException
CreateTaxonomyFacetFloatAssociations
against the default index field. Sources values from the providedvaluesSource
.- Throws:
IOException
-
TaxonomyFacetFloatAssociations
public TaxonomyFacetFloatAssociations(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction) throws IOException
CreateTaxonomyFacetFloatAssociations
against the specified index field.- Throws:
IOException
-
TaxonomyFacetFloatAssociations
public TaxonomyFacetFloatAssociations(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction, DoubleValuesSource valuesSource) throws IOException
CreateTaxonomyFacetFloatAssociations
against the specified index field. Sources values from the providedvaluesSource
.- Throws:
IOException
-
TaxonomyFacetFloatAssociations
@Deprecated public TaxonomyFacetFloatAssociations(OrdinalsReader ordinalsReader, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction, DoubleValuesSource valuesSource) throws IOException
Deprecated.Custom binary encodings for taxonomy ordinals are no longer supported starting with Lucene 9CreateTaxonomyFacetFloatAssociations
against the specified index field. Sources values from the providedvaluesSource
.- Throws:
IOException
-
-