You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by 游泳池的鱼 <su...@gmail.com> on 2007/12/07 03:02:47 UTC

Fwd: Can I search in realtime?

Hi, it's my first time to use lucene maillist. I have problem that  when  I
add a document with IndexWriter , it searchable for the IndexSearcher
instance which is creat before the document flush to index? if lucene can
not do this,any suggest to solve this problem?

   Regards,
   cooc

Re: Can I search in realtime?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Dec 6, 2007, at 9:02 PM, 游泳池的鱼 wrote:
> Hi, it's my first time to use lucene maillist. I have problem that   
> when  I
> add a document with IndexWriter , it searchable for the IndexSearcher
> instance which is creat before the document flush to index? if  
> lucene can
> not do this,any suggest to solve this problem?

Yes... recreate a new IndexSearcher after adding documents :)    
That's the Lucene Way.

	Erik



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org