lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Øyvind Stegard <oyvind.steg...@usit.uio.no>
Subject Re: Custom Filter implementations - necessary to check if doc is deleted ?
Date Sat, 09 Dec 2006 11:01:47 GMT
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message