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.TaxonomyFacetSumValueSource
Aggregates sum of values from
FunctionValues.doubleVal(int), for each facet label.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classValueSourcethat returns the score for each hit; use this to aggregate the sum of all hit scores for each facet label. -
Constructor Summary
ConstructorsConstructorDescriptionTaxonomyFacetSumValueSource(OrdinalsReader ordinalsReader, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, ValueSource valueSource) Aggreggates float facet values from the providedValueSource, and pulls ordinals from the providedOrdinalsReader.TaxonomyFacetSumValueSource(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, ValueSource valueSource) Aggreggates float facet values from the providedValueSource, pulling ordinals usingDocValuesOrdinalsReaderagainst the default indexed facet fieldFacetsConfig.DEFAULT_INDEX_FIELD_NAME. -
Method Summary
Methods inherited from class org.apache.lucene.facet.taxonomy.FloatTaxonomyFacets
getSpecificValue, getTopChildrenMethods inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
getAllDims
-
Constructor Details
-
TaxonomyFacetSumValueSource
public TaxonomyFacetSumValueSource(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, ValueSource valueSource) throws IOException Aggreggates float facet values from the providedValueSource, pulling ordinals usingDocValuesOrdinalsReaderagainst the default indexed facet fieldFacetsConfig.DEFAULT_INDEX_FIELD_NAME.- Throws:
IOException
-
TaxonomyFacetSumValueSource
public TaxonomyFacetSumValueSource(OrdinalsReader ordinalsReader, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, ValueSource valueSource) throws IOException Aggreggates float facet values from the providedValueSource, and pulls ordinals from the providedOrdinalsReader.- Throws:
IOException
-