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

Problem with creating IndexReaders and understanding their implementation use

2009-01-22 Thread Micah Jaffe
My environment: Lucene 2.3.2 on Linux, Java 1.6.0_07-b06, running under Tomcat 5.5.26 What I'm trying to do seems pretty simple, but is causing a headache which I can't sleuth out. When I try to build an IndexSearcher using an IndexReader, the IndexReader.open( String_to_index_dir ) call