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 057375901cd..bc75a24b5c3 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).clone(); + result = (BitSet) 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).clone(); + result = (BitSet) chain[i].bits(reader).clone(); ++i; } else