Saturday, March 17, 2018

FW: Solr Warming Up Doubts

-----Original Message-----
From: Shawn Heisey [mailto:apache@elyograg.org]
Sent: 14 March 2018 20:25
To: solr-user@lucene.apache.org
Subject: Re: Solr Warming Up Doubts

First, I need to state my agreement with what Alessandro told you.  A lot of
what I am saying below is the same as that reply.

On 3/7/2018 9:08 AM, Birender Rawat wrote:
> *1. FirstSearcher* I have added some 2 frequent used query but all my
> autowarmCount are set to 0. I have also added facet for warming. So if
> my autowarmCount=0, does this mean by queries are not getting cached.

The firstSearcher config is run precisely once -- when you first start Solr,
before any imports happen.  Use newSearcher as well -- the queries in that
config are run every time a new searcher opens.  Or, instead of newSearcher,
use autowarmCount.You could even use both.

> *2. useColdSearcher = false* Despite reading many document, i am not
> able to understand how it works after full import (assuming this is
> not my first
> full-import)

It doesn't affect ANYTHING after full import.  This parameter ONLY affects
the very first searcher opened -- the one that runs firstSearcher queries. 
When it is true, the searcher is available for queries *before* the
firstSearcher config is executed.  The system allows it to be used even
though it is cold.  When it is false, the first searcher will not be
available for queries until the firstSearcher config has finished running.

> *3. not defined maxWarmingSearchers in solrconfig.*

I wouldn't worry about this.  Increasing this value is almost never the
right thing to do.  If you are running into a situation where you're
exceeding the max warming searchers, chances are that you are doing commits
with openSearcher=true too frequently and need to dial it back.

> Am i doing anything wrong as why my autowarm is not working proprtly?

With the configuration you have, you are NOT doing ANY warming that will
help your imports.  You've set autowarmCount to 0 and you don't have
newSearcher configured.

Thanks,
Shawn

No comments:

Post a Comment