Fix build: restore illegalScorer still in use in ExpressionSearchScript (2)

This commit is contained in:
Jim Ferenczi 2016-05-04 16:48:08 +02:00
parent c4554fedad
commit 8d3427b44d
1 changed files with 0 additions and 25 deletions

View File

@ -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.