On Mar 7, 2007, at 11:34 AM, Chris Hostetter wrote:

: back in just now. Here's an example trying to warm using a sort on
: field name "subject". I tried query of
: "allMessageContent:trying;subject+asc" as well as
: "allMessageContent:trying;subject" (without "+asc") - either way

when expressing params in XML (either as init params for a request
handler, or in a QuerySenderListener the params don't need to be URL
escaped ... they just need to be XML escaped, try something like...


     <listener event="newSearcher" class="solr.QuerySenderListener">
       <arr name="queries">
         <lst>
             <str name="q">allMessageContent:test; subject asc</str>
             <str name="start">0</str>
             <str name="rows">10</str>
         </lst>
       </arr>
     </listener>

-Hoss

Thanks to you and Ryan for that suggestion, that was indeed the problem. Using a warming query of "allMessageContent:trying;subject asc" (without my hand-escaped whitespace) worked great.

In the end, this is what I've got in my solrconfig.xml, and the overall query performance is now consistently fast, even after post'ing a commit message.

<listener event="newSearcher" class="solr.QuerySenderListener">
  <arr name="queries">
<lst> <str name="q">text:trying;date asc</str> <str name="start">0</str> <str name="rows">50</str> </lst> <lst> <str name="q">text:trying;refId asc</str> <str name="start">0</str> <str name="rows">50</str> </lst> <lst> <str name="q">text:trying;subject asc</str> <str name="start">0</str> <str name="rows">50</str> </lst> <lst> <str name="q">text:trying;name asc</str> <str name="start">0</str> <str name="rows">50</str> </lst>
  </arr>
</listener>

<listener event="firstSearcher" class="solr.QuerySenderListener">
  <arr name="queries">
<lst> <str name="q">text:trying;date asc</str> <str name="start">0</str> <str name="rows">50</str> </lst> <lst> <str name="q">text:trying;refId asc</str> <str name="start">0</str> <str name="rows">50</str> </lst> <lst> <str name="q">text:trying;subject asc</str> <str name="start">0</str> <str name="rows">50</str> </lst> <lst> <str name="q">text:trying;name asc</str> <str name="start">0</str> <str name="rows">50</str> </lst>
  </arr>
</listener>

Thanks again,
Kaan


Confidentiality Notice: This e-mail message (including any attached or
embedded documents) is intended for the exclusive and confidential use of the
individual or entity to which this message is addressed, and unless otherwise
expressly indicated, is confidential and privileged information of Rackspace
Managed Hosting. Any dissemination, distribution or copying of the enclosed
material is prohibited. If you receive this transmission in error, please
notify us immediately by e-mail at [EMAIL PROTECTED], and delete the
original message. Your cooperation is appreciated.

Reply via email to