org.apache.lucene.facet.taxonomy
Class TaxonomyFacetSumValueSource

java.lang.Object
  extended by org.apache.lucene.facet.Facets
      extended by org.apache.lucene.facet.taxonomy.TaxonomyFacets
          extended by org.apache.lucene.facet.taxonomy.FloatTaxonomyFacets
              extended by org.apache.lucene.facet.taxonomy.TaxonomyFacetSumValueSource

public class TaxonomyFacetSumValueSource
extends FloatTaxonomyFacets

Aggregates sum of values from FunctionValues.doubleVal(int), for each facet label.

WARNING: This API is experimental and might change in incompatible ways in the next release.

Nested Class Summary
static class TaxonomyFacetSumValueSource.ScoreValueSource
          ValueSource that returns the score for each hit; use this to aggregate the sum of all hit scores for each facet label.
 
Field Summary
 
Fields inherited from class org.apache.lucene.facet.taxonomy.FloatTaxonomyFacets
values
 
Fields inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
children, config, indexFieldName, siblings, taxoReader
 
Constructor Summary
TaxonomyFacetSumValueSource(OrdinalsReader ordinalsReader, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, ValueSource valueSource)
          Aggreggates float facet values from the provided TaxonomyFacetSumValueSource.ScoreValueSource, and pulls ordinals from the provided OrdinalsReader.
TaxonomyFacetSumValueSource(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, ValueSource valueSource)
          Aggreggates float facet values from the provided TaxonomyFacetSumValueSource.ScoreValueSource, pulling ordinals using DocValuesOrdinalsReader against the default indexed facet field FacetsConfig.DEFAULT_INDEX_FIELD_NAME.
 
Method Summary
 
Methods inherited from class org.apache.lucene.facet.taxonomy.FloatTaxonomyFacets
getSpecificValue, getTopChildren, rollup
 
Methods inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
getAllDims, verifyDim
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaxonomyFacetSumValueSource

public TaxonomyFacetSumValueSource(TaxonomyReader taxoReader,
                                   FacetsConfig config,
                                   FacetsCollector fc,
                                   ValueSource valueSource)
                            throws IOException
Aggreggates float facet values from the provided TaxonomyFacetSumValueSource.ScoreValueSource, pulling ordinals using DocValuesOrdinalsReader against the default indexed facet field FacetsConfig.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 provided TaxonomyFacetSumValueSource.ScoreValueSource, and pulls ordinals from the provided OrdinalsReader.

Throws:
IOException


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.