LUCENE-8103: Revert QueryValueSource.objectVal change

This commit is contained in:
David Smiley 2020-03-16 00:27:04 -04:00
parent 6c1d992fad
commit 261e7ba86c
1 changed files with 7 additions and 3 deletions

View File

@ -164,10 +164,14 @@ class QueryDocValues extends FloatDocValues {
}
}
@Override
@Override
public Object objectVal(int doc) {
return floatVal(doc);
}
try {
return exists(doc) ? scorer.score() : null;
} catch (IOException e) {
throw new RuntimeException("caught exception in QueryDocVals(" + q + ") doc=" + doc, e);
}
}
@Override
public ValueFiller getValueFiller() {