lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshi, Shital" <Shital.Jo...@gs.com>
Subject RE: autowarming queries
Date Thu, 22 May 2014 20:12:54 GMT
Thanks for looking into this. 

Auto warming queries are the ones which gets executed upon creation of first searcher and
new searcher. We use same set of queries for first and new searcher. 

These are our queries. 

<listener event="newSearcher" class="solr.QuerySenderListener">
       	<arr name="queries">
	          <lst>
           		<str name="q">*:*</str>
           		<str name="fq">field1:"abc"</str>
           		<str name="fq">-field2:"xyz"</str>
           		<str name="facet">true</str>
           		<str name="facet.mincount">1</str>
           		<str name="sort">busdate_i desc</str>
           		<str name="facet.field">field1</str>
           		<str name="facet.field">field2</str>
           		<str name="facet.field">field3</str>
           		<str name="facet.field">field4</str>
           		<str name="facet.field">field5</str>
           		<str name="facet.field">field6</str>
           		<str name="facet.field">field7</str>
           		<str name="facet.field">field8</str>
           		<str name="facet.field">field9</str>
           		<str name="facet.field">field10</str>
           		<str name="facet.field">field11</str>
           		<str name="facet.field">field12</str>
           		<str name="facet.field">field13</str>
	                <str name="facet.field">field14</str>
               	 <str name="facet.field">field15</str>
           		<str name="facet.missing">true</str>
           		<str name="facet.sort">index</str>
           		<str name="facet.limit">50</str>
           		<str name="facet.offset">0</str>
	                <str name="stats">true</str>
               	 <str name="stats.field">field16</str>
	                <str name="stats.field">field17</str> 
               	 <str name="stats.field">field18</str>                
          </lst>
           <lst>
           		<str name="q">*:*</str>
           		<str name="fq">field1:"abc"</str>
           		<str name="fq">-field2:"xyz"</str>
           		<str name="facet">true</str>
           		<str name="facet.mincount">1</str>
           		<str name="sort">busdate_i desc</str>
           		<str name="facet.field">field1</str>
           		<str name="facet.field">field2</str>
           		<str name="facet.field">field3</str>
           		<str name="facet.field">field4</str>
           		<str name="facet.field">field5</str>
           		<str name="facet.field">field6</str>
           		<str name="facet.field">field7</str>
           		<str name="facet.field">field8</str>
           		<str name="facet.field">field9</str>
           		<str name="facet.field">field10</str>
           		<str name="facet.field">field11</str>
           		<str name="facet.field">field12</str>
           		<str name="facet.field">field13</str>
	               <str name="facet.field">field14</str>
               	<str name="facet.field">field15</str>
           		<str name="facet.missing">true</str>
           		<str name="facet.sort">count</str>
           		<str name="facet.limit">50</str>
           		<str name="facet.offset">0</str>
	               <str name="stats">true</str>
               	 <str name="stats.field">field16</str>
	                <str name="stats.field">field17</str> 
	                <str name="stats.field">field18</str>
               	 
           </lst>  
           <lst>
           		<str name="indent">on</str>           		
           		<str name="echoHandler">true</str>           		
           		<str name="shards.info">false</str>           		
		<str name="shards.tolerant">false</str>           		           		
		<str name="df">text</str>           		
           		<str name="defType">lucene</str>           		
           		<str name="q">*:*</str>
           		<str name="fq">field1:"abc"</str>
           		<str name="fq">-field2:"xyz"</str>
           		<str name="q.op">AND</str>           		           		
           		<str name="facet">true</str>
           		<str name="facet.mincount">1</str>
           		<str name="rows">75</str>           		
           		<str name="start">00</str>           		
           		<str name="facet.field">field1</str>
           		<str name="field1.facet.missing">true</str>
		<str name="field1.facet.sort">index</str>
		<str name="field1.facet.limit">25</str>
		<str name="field1.facet.offset">0</str>	
           		<str name="facet.field"> field2</str>
           		<str name="field2.facet.missing">true</str>
		<str name="field2.facet.sort">count</str>
		<str name="field2.facet.limit">25</str>
		<str name="field2.facet.offset">0</str>	        
           		<str name="facet.field">field3</str>
           		<str name="field3.facet.missing">true</str>
		<str name="field3.facet.sort">count</str>
		<str name="field3.facet.limit">25</str>
		<str name="field3.facet.offset">0</str>	
           		<str name="facet.field">field4</str>
           		<str name="field4.facet.missing">true</str>
		<str name="field4.facet.sort">index</str>
		<str name="field4.facet.limit">25</str>
		<str name="field4.facet.offset">0</str>	
      		<str name="facet.field">field5</str>
           		<str name="field5.facet.missing">true</str>
		<str name="field5.facet.sort">index</str>
		<str name="field5.facet.limit">25</str>
		<str name="field5.facet.offset">0</str>	
          		<str name="facet.field">field6</str>
           		<str name="field6.facet.missing">true</str>
		<str name="field6.facet.sort">count</str>
		<str name="field6.facet.limit">25</str>
		<str name="field6.facet.offset">0</str>	
       		<str name="facet.field">field7</str>
   		<str name="field7.facet.missing">true</str>
		<str name="field7.facet.sort">count</str>
		<str name="field7.facet.limit">25</str>
		<str name="field7.facet.offset">0</str>
          		<str name="facet.field">field8</str>
           		<str name="field8.facet.missing">true</str>
		<str name="field8.facet.sort">count</str>
		<str name="field8.facet.limit">25</str>
		<str name="field8.facet.offset">0</str>
          		<str name="facet.field">field9</str>
           		<str name="field9.facet.missing">true</str>
		<str name="field9.facet.sort">index</str>
		<str name="field9.facet.limit">25</str>
		<str name="field9.facet.offset">0</str>
          		<str name="facet.field">field10</str>
           		<str name="field10.facet.missing">true</str>
		<str name="field10.facet.sort">index</str>
		<str name="field10.facet.limit">25</str>
		<str name="field10.facet.offset">0</str>
           		<str name="facet.field">field11</str>
           		<str name="field11.facet.missing">true</str>
		<str name="field11.facet.sort">index</str>
		<str name="field11.facet.limit">25</str>
		<str name="field11.facet.offset">0</str>	                         		
           		<str name="facet.field">field12</str>
           		<str name="field12.facet.missing">true</str>
		<str name="field12.facet.sort">count</str>
		<str name="field12.facet.limit">25</str>
		<str name="field12.facet.offset">0</str>
           		<str name="facet.field">field13</str>
	              <str name="field13.facet.missing">true</str>
		<str name="field13.facet.sort">count</str>
		<str name="field13.facet.limit">25</str>
		<str name="field13.facet.offset">0</str>
	              <str name="facet.field">field14</str>
	              <str name="field14.facet.missing">true</str>
		<str name="field14.facet.sort">count</str>
		<str name="field14.facet.limit">25</str>
		<str name="field14.facet.offset">0</str>
	              <str name="facet.field">field15</str>
           		<str name="field15.facet.missing">true</str>
		<str name="field15.facet.sort">count</str>
		<str name="field15.facet.limit">25</str>
		<str name="field15.facet.offset">0</str>
		<str name="stats">true</str>
	              <str name="stats.field"> field15</str> 
	             <str name="stats.field"> field15</str>
	</lst>      
         </arr>
    </listener>




-----Original Message-----
From: Erick Erickson [mailto:erickerickson@gmail.com] 
Sent: Monday, May 12, 2014 7:25 PM
To: solr-user@lucene.apache.org
Subject: Re: autowarming queries

First define an auto-warming query :)...

firstSearcher queries are fired when the server is started

newSearcher queries are fired when a new searcher is opened, i.e. when
a commit (hard when openSeracher=true or soft) happens.

Let's see your configuration too where you think you're setting up the
queries, maybe you've got an error there.

Best,
Erick

On Mon, May 12, 2014 at 8:27 AM, Joshi, Shital <Shital.Joshi@gs.com> wrote:
> Hi,
>
> How many auto warming queries are supported per collection in Solr4.4 and higher? We
see one out of three queries in log when new searcher is created. Shouldn't it print all searcher
queries?
>
> Thanks!
>
>
>
Mime
View raw message