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

@ -166,7 +166,11 @@ class QueryDocValues extends FloatDocValues {
@Override @Override
public Object objectVal(int doc) { 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 @Override