thanks Suman .
I test my code again in my project.It works,users can search the new index doc 
immediately.
In our website,we merge index files every 15 mins from a server to another 
server.and we can not stop the search service,so we can not reopen 
the index directory,thanks.
2011-10-10



janwen | China 
website : http://www.qianpin.com/




From:suman.holani
Date:2011-10-10 13:00
Subject:RE: merge index
To:java-user
Cc:

Hi janwen, 

Try reopening the index reader and make  new instance of searcher . 


Regards, 
Suman 

-----Original Message----- 
From: janwen [mailto:tom.grade1...@163.com]  
Sent: Monday, October 10, 2011 7:34 AM 
To: java-user 
Subject: merge index 

HI: 
  after  i add new index directory to exsited directoy,but i can not search the 
new index docs.but when i restart my tomcat server,i can do that.I am wondering 
that i need to restart tomcat to search the new index doc? or is there other 
way to do that the new index docs can be searched immediately? 
thanks 

2011-10-10 



janwen | China  
website : http://www.qianpin.com/ 



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