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
As far as I know, you have to open a new instance. I don't think this is solved in Lucene 2.1 at all. I do remember discussions a while ago where the general idea was to open a new reader and, perhaps, fire a few "primer" queries at it on some background thread. Then, your main thread can switch

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

2007-05-10 Thread Andreas Guther
Maybe I should add that I am currently using Lucene 2.0. From other threads I get the impression that this might be solved in Lucene 2.1. -Original Message- From: Andreas Guther [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 10:33 PM To: java-user@lucene.apache.org Subject: How t