Code comment only change

This commit is contained in:
Erick Erickson 2020-02-11 19:32:54 -05:00
parent f9357ab0d2
commit 0767a9d4d7
1 changed files with 2 additions and 0 deletions

View File

@ -324,6 +324,8 @@ class FacetFieldProcessorByArrayDV extends FacetFieldProcessorByArray {
int ord = (toGlobal != null && segOrd >= 0) ? (int)toGlobal.get(segOrd) : segOrd;
int arrIdx = ord - startTermIndex;
// This code handles faceting prefixes, which narrows the range of ords we want to collect.
// Its not an error for an ord to fall outside this range we simply want to skip it.
if (arrIdx >= 0 && arrIdx < nTerms) {
countAcc.incrementCount(arrIdx, 1);
if (collectAcc != null) {