: field, than you could use a warming query like the following:
: 
: <arr name="queries">
:  <lst>
:   <str name="q">common query</str>
:   <str name="qf">title description author</str>
:   <str name="fq">category:books</str>
:   <str name="sort">title_sort asc</str>
:   <str name="defType">dismax</str>
:  </lst>
: </arr>

...it's improtant to remember that if params like your defType and qf (and 
sort and facet.field and fq etc...) are already specified as defaults on 
your query handler, you don't need to list them here -- just specify the 
handler you are using as the "qt" param (you didn't mention what it was 
named in your original email)...

 <arr name="queries">
  <lst>
   <str name="q">common query</str>
   <str name="qt">standard_or_whater_you_named_it</str>
  </lst>
 </arr>

In general, most people should really only need a handful of newSearcher 
warming queries -- you certianly don't need to list *every* query that you 
want to be "fast" in newSearcher -- just enough to ensure:
 * the basic index files are loaded by the OS
 * any fields you might sort on are used (in a sort)
 * any fields you might facet on or do functions over are used (in 
faceting/functions)


-Hoss

Reply via email to