On Fri, Oct 26, 2018 at 10:38 AM Xiaolong Zheng < xiaolong.zh...@mathworks.com> wrote:
Hi, But when things come to Solr world which in a Java Webapp with servlet dispatcher. Do we also keep reusing the same IndexSearcher instance as long as there is no index changing? Yes. The IndexSearcher is in charge of processing all the requests. When there's a (hard) commit, a new IndexSearcher is created. While the new searcher is being initialised, the old one continues to process requests normally. After the new IndexSearcher is initialised, the old one is deregistered, continues to process the remaining requests sent to it and is finally shutdown.The new IndexSearcher process the new requests. Edward