Yes, that's correct. If you stop the server then you are stopping the JVM and the searcher goes away with it.
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: Manupriya <manupriya.si...@gmail.com> > To: solr-user@lucene.apache.org > Sent: Wednesday, January 14, 2009 5:59:54 AM > Subject: Re: What do we mean by Searcher? > > > Thanks a lot Otis! > > I will definitely look into Lucene for more information on Searchers. > > WIth respect to Solr, I have a quick question - > If I restart Solr server, and search, then definitely a new Searcher would > be initialized. As per my understanding, stopping the server should close > the Searchers as well. Is it correct assumption? > > Thanks, > Manu > > > > Otis Gospodnetic wrote: > > > > Manu, > > > > If you truly want to get a better feeling for the notion of a Searcher, my > > advice is to play with Lucene a little bit first. Do you have a copy of > > Lucene in Action? You get get a cheaper version online on > > manning.com/hatcher2 if you want and quickly read a bit about Searcher in > > one of the early chapters. In short, the searcher is the object/the thing > > that performs searches against an index. > > > > More answers to your questions below. > > > > > >> We use Data Import feature of Solr to index database tables. Now, I send > >> a > >> query(*:*) through Solr Admin console for searching. And I get back > >> search > >> result. In this whole process, I have following questions - > >> 1. What is the significance of Searcher in this case? > > > > The searcher is the thing that performed the search. It took your query > > string, opened an index, ran the search, and got results. > > > >> 2. When is Searcher invoked? > > > > When you run a search request. > > > >> 3. Who invokes Searher? > > > > You do, when you call one of the SearchComponents or RequestHandlers, when > > you run a search request. > > > >> 4. Where it is Stored? > > > > Searcher is not really "stored". It's a piece of code that runs inside > > Solr, which runs inside a servlet container, which runs inside a JVM, and > > so on. > > > >> 5. When I send another query (manu:abc), will a new Searcher created? > > > > No, the same searcher will be used unless you told Solr to open a new > > Searcher. > > > >> 6. How is searcher auto-warmed in this case? > > > > > http://wiki.apache.org/solr/?action=fullsearch&context=180&value=autowarm&fullsearch=Text > > > > Otis > > -- > > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > > > > > > > ----- Original Message ---- > >> From: Manupriya > >> To: solr-user@lucene.apache.org > >> Sent: Tuesday, January 13, 2009 9:25:02 AM > >> Subject: What do we mean by Searcher? > >> > >> > >> Hi, > >> > >> I am somehow new to Solr. While reading through documents/resources, I > >> have > >> come across 'Searcher' term many times. I am able to roughly undestand, > >> that > >> whenever we fire any query, we are actually invoking a searcher. This > >> searcher searches through the index and returns results. > >> > >> But I am not able to fully grasp its meaning. I refered a previous post > >> as > >> well - http://www.nabble.com/what-is-searcher-td15448682.html#a15448682. > >> > >> I have also read through - > >> > http://lucene.apache.org/java/2_3_0/api/org/apache/lucene/search/Searcher.html#Searcher() > > > >> > >> But I am not able fully appreciate it. > >> > >> I want to understand Searcher in a practical scenario - > >> > >> We use Data Import feature of Solr to index database tables. Now, I send > >> a > >> query(*:*) through Solr Admin console for searching. And I get back > >> search > >> result. In this whole process, I have following questions - > >> 1. What is the significance of Searcher in this case? > >> 2. When is Searcher invoked? > >> 3. Who invokes Searher? > >> 4. Where it is Stored? > >> 5. When I send another query (manu:abc), will a new Searcher created? > >> 6. How is searcher auto-warmed in this case? > >> > >> Can anyone please direct me to some tutorial/resource for this? > >> > >> Thanks, > >> Manu > >> -- > >> View this message in context: > >> http://www.nabble.com/What-do-we-mean-by-Searcher--tp21436737p21436737.html > >> Sent from the Solr - User mailing list archive at Nabble.com. > > > > > > > > -- > View this message in context: > http://www.nabble.com/What-do-we-mean-by-Searcher--tp21436737p21453784.html > Sent from the Solr - User mailing list archive at Nabble.com.