You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Solr Beginner <so...@onet.pl> on 2011/04/26 14:50:21 UTC

What initialize new searcher?

Hi,

I'm reading solr cache documentation -
http://wiki.apache.org/solr/SolrCaching I found there "The current
Index Searcher serves requests and when a new searcher is opened...".
Could you explain when new searcher is opened? Does it have something
to do with index commit?

Best Regards,
Solr Beginner

Re: What initialize new searcher?

Posted by Solr Beginner <so...@onet.pl>.
Thank you for the answers. I'm moving forward and have few more
questions but for separate threads.

On Tue, Apr 26, 2011 at 10:47 PM, Otis Gospodnetic
<ot...@yahoo.com> wrote:
> Hi,
>
> Yes, typically after your index has been replicated from master to a slave a
> commit will be issued and the new searcher will be opened.  Before being exposed
> to regular clients it's a good practice to warm things up.
>
> Otis
> ----
> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
> Lucene ecosystem search :: http://search-lucene.com/
>
>
>
> ----- Original Message ----
>> From: Solr Beginner <so...@onet.pl>
>> To: solr-user@lucene.apache.org
>> Sent: Tue, April 26, 2011 8:50:21 AM
>> Subject: What initialize new searcher?
>>
>> Hi,
>>
>> I'm reading solr cache documentation -
>> http://wiki.apache.org/solr/SolrCaching I found there "The current
>> Index  Searcher serves requests and when a new searcher is opened...".
>> Could you  explain when new searcher is opened? Does it have something
>> to do with index  commit?
>>
>> Best Regards,
>> Solr Beginner
>>
>

Re: What initialize new searcher?

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Hi,

Yes, typically after your index has been replicated from master to a slave a 
commit will be issued and the new searcher will be opened.  Before being exposed 
to regular clients it's a good practice to warm things up.

Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/



----- Original Message ----
> From: Solr Beginner <so...@onet.pl>
> To: solr-user@lucene.apache.org
> Sent: Tue, April 26, 2011 8:50:21 AM
> Subject: What initialize new searcher?
> 
> Hi,
> 
> I'm reading solr cache documentation -
> http://wiki.apache.org/solr/SolrCaching I found there "The current
> Index  Searcher serves requests and when a new searcher is opened...".
> Could you  explain when new searcher is opened? Does it have something
> to do with index  commit?
> 
> Best Regards,
> Solr Beginner
> 

Re: What initialize new searcher?

Posted by Erick Erickson <er...@gmail.com>.
You're on the right track. In a system where the indexing process and
search process are on the same machine, commits by the index
process cause a new searcher to opened.

In a master/slave situation (assuming you are indexing on the
master and searching on the slave), then the searchers are
reopened on the slaves after a replication. Replications happen
after 1> a commit happens on the master and 2> the slave
polls the master and pulls down the new commits.

Hope that helps
Erick

On Tue, Apr 26, 2011 at 8:50 AM, Solr Beginner <so...@onet.pl> wrote:
> Hi,
>
> I'm reading solr cache documentation -
> http://wiki.apache.org/solr/SolrCaching I found there "The current
> Index Searcher serves requests and when a new searcher is opened...".
> Could you explain when new searcher is opened? Does it have something
> to do with index commit?
>
> Best Regards,
> Solr Beginner
>