What initialize new searcher?

2011-04-26 Thread Solr Beginner
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?

2011-04-26 Thread Erick Erickson
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 solr_begin...@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



Re: What initialize new searcher?

2011-04-26 Thread Otis Gospodnetic
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 solr_begin...@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?

2011-04-26 Thread Solr Beginner
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
otis_gospodne...@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 solr_begin...@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