OK, phew! Thanks for bringing closure.
Mike
Micah Jaffe wrote:
Hi, thanks for responding. A quick follow-up, the problem turned
out to be more complex than originally explained, and it was not in
fact a problem with buggy behavior in Lucene. A static nested class
created a fugly point
Hi, thanks for responding. A quick follow-up, the problem turned out
to be more complex than originally explained, and it was not in fact a
problem with buggy behavior in Lucene. A static nested class created
a fugly point where I was holding/using the wrong reader at the time
of failure.
IndexReader.open opens the latest segments_N file. If that file
references only 1 segment, a SegmentReader is returned, else a
MultiSegmentReader.
I'm confused why you see the SegmentReader impl giving too few results
-- that should only be returned if your index legitimately has only 1