proper creation of values for unmapped field on score function
This commit is contained in:
parent
60ab72e322
commit
c2c4742f65
|
@ -57,7 +57,7 @@ public class FieldValueFactorFunction extends ScoreFunction {
|
|||
public LeafScoreFunction getLeafScoreFunction(LeafReaderContext ctx) {
|
||||
final SortedNumericDoubleValues values;
|
||||
if(indexFieldData == null) {
|
||||
values = FieldData.emptySortedNumericDoubles(0);
|
||||
values = FieldData.emptySortedNumericDoubles(ctx.reader().maxDoc());
|
||||
} else {
|
||||
values = this.indexFieldData.load(ctx).getDoubleValues();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue