Re: RE: merge index

2011-10-09 Thread janwen
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 janw

RE: merge index

2011-10-09 Thread suman.holani
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 dire

ShinglesAnalyzer Queston

2011-10-09 Thread Peyman Faratin
Hi I am trying to understand why I am not able to retrieve docs I have indexed by a ShingleAnalyzer. The setup is as follows: During indexing I do the following: PerFieldAnalyzerWrapper wrapper = DocFieldAnalyzerWrapper.getDocFieldAnalyzerWrapper(Stopwords);