2006-12-08 fre 15:41 -0800, Chris Hostetter: > : Is it necessary to check the deleted-status of documents that the filter > : includes (and never actually include deleted documents), or is this done > ... > : I'm trying to implementent an inverted version of a filter, simply by > : flipping all the bits in the BitSet, after the filter has finished > : processing, but this gives me "attempt to access deleted document" > ... > : Does TermDocs sometimes enumerate deleted docs, once it has been > : seek()'ed to a TermEnum position ? > > TermDocs does in fact skip over deleted docs (search for "deletedDocs" in > SegmentTermDocs to see where) but by flipping all the bits to get the > non-matches you make it neccessary for your filter to explicitly check for > deletions itself. Yes, I figured this was the problem. I'm now going through the flipped BitSet afterwords, and clearing any set bits for deleted docs. Works nicely. Thanks.
Øyvind -- < Øyvind Stegard < oyvind stegard at usit uio no > < USIT, UiO --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]