lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Can I search in realtime?
Date Fri, 07 Dec 2007 10:29:25 GMT

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


Mime
View raw message