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:
Robert Muir 2014-05-13 23:24:44 +00:00
parent ff8e841fa1
commit 9374fcc6e9
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ final class DeleteByQueryWrapper extends Query {
public Query rewrite(IndexReader reader) throws IOException { public Query rewrite(IndexReader reader) throws IOException {
Query rewritten = in.rewrite(reader); Query rewritten = in.rewrite(reader);
if (rewritten != in) { if (rewritten != in) {
return new DeleteByQueryWrapper(in, schema); return new DeleteByQueryWrapper(rewritten, schema);
} else { } else {
return this; return this;
} }