Hi,

I would like to have more understanding of the lifecycle for IndexSearcher in 
Solr, I understand that IndexSearcher for Lucene would recommended that “For 
performance reasons, if your index is unchanging, you should share a single 
IndexSearcher instance across multiple searches instead of creating a new one 
per-search.” (based on Lucene 4.6.1 
version<https://lucene.apache.org/core/4_6_1/core/org/apache/lucene/search/IndexSearcher.html>).

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?

I see “Hossman” had this talk for the lifecycle of the solr search 
request<https://home.apache.org/~hossman/rev2017/>, but he doesn’t mention 
anything about how we handle/cleanup the indexsearcher.


Thanks,
Xiaolong



Reply via email to