Fix build: restore illegalScorer still in use in ExpressionSearchScript (2)
This commit is contained in:
parent
c4554fedad
commit
8d3427b44d
|
@ -638,31 +638,6 @@ public class Lucene {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a Scorer that throws an ElasticsearchIllegalStateException
|
||||
* on all operations with the given message.
|
||||
*/
|
||||
public static Scorer illegalScorer(final String message) {
|
||||
return new Scorer(null) {
|
||||
@Override
|
||||
public float score() throws IOException {
|
||||
throw new IllegalStateException(message);
|
||||
}
|
||||
@Override
|
||||
public int freq() throws IOException {
|
||||
throw new IllegalStateException(message);
|
||||
}
|
||||
@Override
|
||||
public int docID() {
|
||||
throw new IllegalStateException(message);
|
||||
}
|
||||
@Override
|
||||
public DocIdSetIterator iterator() {
|
||||
throw new IllegalStateException(message);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a Scorer that throws an ElasticsearchIllegalStateException
|
||||
* on all operations with the given message.
|
||||
|
|
Loading…
Reference in New Issue