On 6/26/06, Chris Hostetter <[EMAIL PROTECTED]> wrote:
: My next challenge is to re-implement the catch-all facets that I used
: to do by unioning all documents in an (Open)BitSet and inverting it.
: How can I invert a DocSet (I realize I gat get the bits and do it
: that way, but is there a better way)?

well, the most obvious solution i can think of would be a patch adding an
invert() method to DocSet, HashDocSet and BitDocSet.   :)

Yes, we could add a flip(startIndex, endIndex) or flip(maxDoc)

If the inverted set is just for the purposes of getting an
intersection count with another set, you could also just do
mySet.andNotSize(theBigUnionSet)

-Yonik

Reply via email to