Re: Searches fail while indexwriter is open

2007-04-02 Thread baronDodd
Many thanks for your response, some good points which I had not thought of, but unfortunately the problem remains. To clarify my index sequence in pseudo-code is this: if( fileExists( filePath ) ){ createIndexReader(); delectDoc( docNumber ); } createIndexWriter(); indexDoc

Re: Searches fail while indexwriter is open

2007-04-02 Thread Erick Erickson
Yes, you can search while index writes are taking place, but When you open an index reader, it essentially takes a snapshot of the index and further modifications of the index are not visible to that searcher as long as it's open. You must close and re-open the reader (and associated searcher