lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Consult some information about adding index while searching
Date Thu, 27 Jul 2006 10:54:23 GMT

> I met this problem: when searching,  I add documents to index. Although I
> instantiates a new IndexSearcher,  I can't retrieve the newly added
> documents. I have to close the program and enter the program, then it will
> be ok.

Did you close your IndexWriter (so it flushes all changes to disk) 
before instantiating a new IndexSearcher?

Mike

---------------------------------------------------------------------
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