mirror of https://github.com/apache/lucene.git
LUCENE-5666: fix rewrite bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5666@1594418 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ff8e841fa1
commit
9374fcc6e9
|
@ -57,7 +57,7 @@ final class DeleteByQueryWrapper extends Query {
|
|||
public Query rewrite(IndexReader reader) throws IOException {
|
||||
Query rewritten = in.rewrite(reader);
|
||||
if (rewritten != in) {
|
||||
return new DeleteByQueryWrapper(in, schema);
|
||||
return new DeleteByQueryWrapper(rewritten, schema);
|
||||
} else {
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue