I have an index that is frequently updated. When
indexing is completed, an event triggers a new
Searcher to be opened. When the new Searcher is
opened, incoming searches are redirected to the new
Searcher, the old Searcher is closed and nulled, but I
still see about twice the amount of memory in
:[EMAIL PROTECTED]
Envoyé : jeudi 27 janvier 2005 17:29
À : lucene-user@jakarta.apache.org
Objet : Reloading an index
I have an index that is frequently updated. When
indexing is completed, an event triggers a new
Searcher to be opened. When the new Searcher is
opened, incoming searches
I just ran into a similar issue. When you close an IndexSearcher, it
doesn't necessarily close the underlying IndexReader. It depends
which constructor you used to create the IndexSearcher. See the
constructors javadocs or source for the details.
In my case, we were updating and optimizing the
: processes ended. If you're under linux, try running the 'lsof'
: command to see if there are any handles to files marked (deleted).
: Searcher, the old Searcher is closed and nulled, but I
: still see about twice the amount of memory in use well
: after the original searcher has been