First filter gets modified if operation is an AND (which is terrible if its a

cached filter and not a throw-away one).
Patch by Rick Mann (rmann at keepmedia.com).


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150982 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kelvin Tan 2004-05-17 13:41:03 +00:00
parent 3e595abf2d
commit 9ca5de00f0
1 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ public class ChainedFilter extends Filter
*/
if (logic == AND)
{
result = chain[i].bits(reader);
result = chain[i].bits(reader).clone();
++i;
}
else
@ -209,7 +209,7 @@ public class ChainedFilter extends Filter
*/
if (logic[0] == AND)
{
result = chain[i].bits(reader);
result = chain[i].bits(reader).clone();
++i;
}
else