lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: SolrCore / Index Searcher Instances
Date Sat, 02 Oct 2010 00:01:04 GMT

: This may seem like a stupid question, but why on the info / stats pages do we
: see two instances on SolrIndexSearcher?

There will always be two "SolrIndexSearcher" entries on the info & stats 
pages -- the curret search is listed once under it's "real" name and once 
as "searcher" (i think it use to be "currentSearcher", but it looks like 
someone changed that?)

The reason is so you can always access stats (via the registery or JMX) 
for the current SolrIndexSearcher using a fixed name -- you can easily 
verify that these searchers are the same by lookin at the "searcherName" 
property in the stats.

: Does Solr actually create two instances of SolrCore / SolrIndexSearcher on
: startup? If one is used for warming, why isn't it destroyed when it's
: finished?

it's the same instance, it's just listed twice.


--  ...  October 7-8, Boston      ...  Stump The Chump!

View raw message