mirror of https://github.com/apache/lucene.git
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:
parent
3e595abf2d
commit
9ca5de00f0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue