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 janwen <to...@163.com> on 2011/10/10 04:03:55 UTC

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/

Re: RE: merge index

Posted by janwen <to...@163.com>.
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.grade1986@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-unsubscribe@lucene.apache.org 
For additional commands, e-mail: java-user-help@lucene.apache.org 

RE: merge index

Posted by "suman.holani" <su...@zapak.co.in>.
Hi janwen,

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


Regards,
Suman

-----Original Message-----
From: janwen [mailto:tom.grade1986@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org