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
-
public class TaxonomyFacetSumValueSource extends FloatTaxonomyFacets
Aggregates sum of values fromFunctionValues.doubleVal(int), for each facet label.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaxonomyFacetSumValueSource.ScoreValueSourceValueSourcethat returns the score for each hit; use this to aggregate the sum of all hit scores for each facet label.
-
Constructor Summary
Constructors Constructor Description TaxonomyFacetSumValueSource(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, getTopChildren
-
Methods inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
getAllDims
-
-
-
-
Constructor Detail
-
TaxonomyFacetSumValueSource
public TaxonomyFacetSumValueSource(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, ValueSource valueSource) throws java.io.IOException
Aggreggates float facet values from the providedValueSource, pulling ordinals usingDocValuesOrdinalsReaderagainst the default indexed facet fieldFacetsConfig.DEFAULT_INDEX_FIELD_NAME.- Throws:
java.io.IOException
-
TaxonomyFacetSumValueSource
public TaxonomyFacetSumValueSource(OrdinalsReader ordinalsReader, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, ValueSource valueSource) throws java.io.IOException
Aggreggates float facet values from the providedValueSource, and pulls ordinals from the providedOrdinalsReader.- Throws:
java.io.IOException
-
-