Re: How to re-open the IndexSearcher's IndexReader

2007-05-11 Thread Chris Hostetter
: Opening a new IndexReader is trivial. But then how do I set the : IndexSearcher's reader to the new one without getting a new instance? just reopen a new IndexSearcher ... IndexSearchers are extremely light weight and cheap, the meat they have is the IndexReader itself, so there wouldn't be

Re: How to re-open the IndexSearcher's IndexReader

2007-05-11 Thread Erick Erickson
uther [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 10:33 PM To: java-user@lucene.apache.org Subject: How to re-open the IndexSearcher's IndexReader Hi, How can I re-use an IndexSearcher and keep track of changes to the index? I am dealing with Index Directories of several GB. Openin

RE: How to re-open the IndexSearcher's IndexReader

2007-05-10 Thread Andreas Guther
to re-open the IndexSearcher's IndexReader Hi, How can I re-use an IndexSearcher and keep track of changes to the index? I am dealing with Index Directories of several GB. Opening and IndexSearcher is very expensive and can take several seconds. Therefore I am caching the IndexSearcher f

How to re-open the IndexSearcher's IndexReader

2007-05-10 Thread Andreas Guther
Hi, How can I re-use an IndexSearcher and keep track of changes to the index? I am dealing with Index Directories of several GB. Opening and IndexSearcher is very expensive and can take several seconds. Therefore I am caching the IndexSearcher for re-use. Our indexes are frequently updated.