Upgrade code for Lucene 6.1.
Original commit: elastic/x-pack-elasticsearch@282299cebe
This commit is contained in:
parent
d341223761
commit
8a03988c03
|
@ -468,6 +468,16 @@ public class ShieldIndexSearcherWrapperUnitTests extends ESTestCase {
|
||||||
public Weight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException {
|
public Weight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException {
|
||||||
return new CreateScorerOnceWeight(query.createWeight(searcher, needsScores));
|
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 {
|
public void doTestIndexSearcherWrapper(boolean sparse, boolean deletions) throws IOException {
|
||||||
|
|
Loading…
Reference in New Issue