mirror of https://github.com/apache/lucene.git
LUCENE-5339: add nocommits
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5339@1542712 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b5d3afa239
commit
95a9cd2854
|
@ -32,6 +32,7 @@ import org.apache.lucene.index.BinaryDocValues;
|
|||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.FixedBitSet;
|
||||
|
||||
// nocommit jdoc that this assumes/requires the default encoding
|
||||
public class TaxonomyFacetCounts extends Facets {
|
||||
private final FacetsConfig facetsConfig;
|
||||
private final TaxonomyReader taxoReader;
|
||||
|
@ -178,6 +179,8 @@ public class TaxonomyFacetCounts extends Facets {
|
|||
}
|
||||
|
||||
FacetsConfig.DimConfig ft = facetsConfig.getDimConfig(path.components[0]);
|
||||
// nocommit shouldn't we verify the indexedFieldName
|
||||
// matches what was passed to our ctor?
|
||||
if (ft.hierarchical && ft.multiValued) {
|
||||
totCount = counts[dimOrd];
|
||||
}
|
||||
|
|
|
@ -39,6 +39,8 @@ import org.apache.lucene.util.FixedBitSet;
|
|||
/** Aggregates sum of values from a {@link ValueSource}, for
|
||||
* each facet label. */
|
||||
|
||||
// nocommit jdoc that this assumes/requires the default encoding
|
||||
|
||||
public class TaxonomyFacetSumValueSource extends Facets {
|
||||
private final FacetsConfig facetsConfig;
|
||||
private final TaxonomyReader taxoReader;
|
||||
|
|
Loading…
Reference in New Issue