Peter Kim wrote:
I noticed one way to get around this is to use IndexReader.isDeleted()
to check if it's deleted or not. The problem with that is I only have
access to a MultiSearcher in my HitCollector which doesn't give me
access to the underlying IndexReader. I don't want to have to open an
IndexReader in my custom hit collector to use its isDeleted() method.

Check out the MultiSearcher methods subSearcher() and subDoc(). If you keep an array of the IndexReaders that your MultiSearcher searches, then you can use:

readers[searcher.subSearcher(doc)].isDeleted(searcher.subDoc(doc))

Hope that helps.

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to