Warm up IndexReader

2014-07-11 Thread Jason.H
I found my first search on new created IndexReader is slow , but after i made a search , it will be much faster i'd like to do such "warn up" in the back end of my application rather then wait for the user to warm this up because it's a little bit unfriendly design . I know a warmer would d

re-use IndexWriter

2014-07-08 Thread Jason.H
nowadays , i've been trying every way to improve the performance of indexing , IndexWriter's close operation is really costly , and the Lucene's doc sugguest to re-use IndexWriter instance , i did it , i kept the indexWriter instance , and give it back to every request thread , But there comes