From 9374fcc6e91c841772fd6d26a7599abcd01dba38 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Tue, 13 May 2014 23:24:44 +0000 Subject: [PATCH] LUCENE-5666: fix rewrite bug git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5666@1594418 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/solr/update/DeleteByQueryWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/update/DeleteByQueryWrapper.java b/solr/core/src/java/org/apache/solr/update/DeleteByQueryWrapper.java index 4a0306447ca..1c1fcccb6d5 100644 --- a/solr/core/src/java/org/apache/solr/update/DeleteByQueryWrapper.java +++ b/solr/core/src/java/org/apache/solr/update/DeleteByQueryWrapper.java @@ -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; }