Hi,

I think you have to use IndexReader.isCurrent and then reopen the reader if there are changes. You will need an automatism that periodically checks if any changes where made to the index. If that happens und need to reopen the your reader.

But a real lucene expert maybe can give you a better advice.

greets
Thorsten

Am 22.07.2011 18:36, schrieb Mihai Caraman:
I trust that some of you had to run the indexing as a service/jar and the
search as a servlet/war. How can i obtain this while still keeping the
search near real time(this is difficult because IndexReader needs direct
access to the IndexWriter instance). If no lucene users know this, where
else should i ask this question?

Thank you,
Mihai



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

Reply via email to