mirror of https://github.com/apache/lucene.git
LUCENE-8103: Revert QueryValueSource.objectVal change
This commit is contained in:
parent
6c1d992fad
commit
261e7ba86c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue