-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Using filtering on MultiSarcher with more than one index is not working right.
Probable the best way to describe the problem is to give a small example:
Suppose we have 2 Indexes with two documents each:
Index1 {Doc(id:"A", content:".."), Doc(id:"B", content:"..")}
Index2 {Doc(id:"C", content:".."), Doc(id:"D", content:"..")}
When executing a query that returns all the documents and applying a QueryFilter that generated the following BitSet (1, 0, 0, 0), it should filter all the documents but first; the real results are: Doc(id:"A") and Doc(id:"B"), this because the MultiSearcher applies the BitSet filter from the bitset's position 0 for each Index.
The right way is to split the bitset in peaces: Index1 to get the bites form 0-1 and Index2 bites from 2-3.
Migrated from LUCENE-958 by Ion Badita, resolved Jul 13 2007