mirror of https://github.com/apache/lucene.git
LUCENE-8103: Revert QueryValueSource.objectVal change
This commit is contained in:
parent
6c1d992fad
commit
261e7ba86c
|
@ -164,10 +164,14 @@ 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
|
||||||
public ValueFiller getValueFiller() {
|
public ValueFiller getValueFiller() {
|
||||||
|
|
Loading…
Reference in New Issue