Re: Searching missing documents after doing an addIndexes

2006-05-22 Thread Chris Hostetter
: Can anyone clarify this behavior, i.e., why does search not find : recently added documents unless I close and re-open it? this is by design .. an IndexReader (and hence an IndexSearcher) maintain consistent views of the index at the moment they were open by hanging on to the open filehandles a

Searching missing documents after doing an addIndexes

2006-05-22 Thread Jim Wilson
I am using 1.9.1(java). I am trying to add documents to an existing index that may or may not exist. I use a RAMDirectory to build a temp index that is later merged. Before adding a new document, I search the existing index (using unique key) to see if it is there. If not, I add it. In reading t