diff --git a/sandbox/contributions/miscellaneous/src/java/org/apache/lucene/misc/ChainedFilter.java b/sandbox/contributions/miscellaneous/src/java/org/apache/lucene/misc/ChainedFilter.java index e0816d55cc6..057375901cd 100644 --- a/sandbox/contributions/miscellaneous/src/java/org/apache/lucene/misc/ChainedFilter.java +++ b/sandbox/contributions/miscellaneous/src/java/org/apache/lucene/misc/ChainedFilter.java @@ -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