lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Ribeiro <edward.ribe...@gmail.com>
Subject Re: Solr IndexSearcher lifecycle
Date Sun, 28 Oct 2018 22:06:08 GMT
On Fri, Oct 26, 2018 at 10:38 AM Xiaolong Zheng <
Xiaolong.Zheng@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message