Re: Problem with creating IndexReaders and understanding their implementation use

2009-01-23 Thread Michael McCandless
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

Re: Problem with creating IndexReaders and understanding their implementation use

2009-01-23 Thread Micah Jaffe
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.

Re: Problem with creating IndexReaders and understanding their implementation use

2009-01-22 Thread Michael McCandless
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