Upgrade code for Lucene 6.1.

Original commit: elastic/x-pack-elasticsearch@282299cebe
This commit is contained in:
Adrien Grand 2016-06-10 18:57:09 +02:00
parent d341223761
commit 8a03988c03
1 changed files with 10 additions and 0 deletions

View File

@ -468,6 +468,16 @@ public class ShieldIndexSearcherWrapperUnitTests extends ESTestCase {
public Weight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException {
return new CreateScorerOnceWeight(query.createWeight(searcher, needsScores));
}
@Override
public boolean equals(Object obj) {
return sameClassAs(obj) && query.equals(((CreateScorerOnceQuery) obj).query);
}
@Override
public int hashCode() {
return 31 * classHash() + query.hashCode();
}
}
public void doTestIndexSearcherWrapper(boolean sparse, boolean deletions) throws IOException {