11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

warm a set of explicit queries:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

static firstSearcher warming in solrconfig.xml<br />

<br />

<br />

The above code comes from a sample solrconfig.xml. A key best practice is to modify these<br />

defaults before taking your application to production, but please note: while the sample queries are<br />

commented out in the section for the "newSearcher", the sample quer is not commented out for the<br />

"firstSearcher" event. There is no point in auto-warming your Index Searcher with the query string "static<br />

firstSearcher warming in solrconfig.xml" if that is not relevant to your search application.<br />

RequestDispatcher in <strong>Solr</strong>Config<br />

The requestDispatcher element of solrconfig.xml controls the way the <strong>Solr</strong> HTTP RequestDispatche<br />

r implementation responds to requests. Included are parameters for defining if it should handle /select urls<br />

(for <strong>Solr</strong> 1.1 compatibility), if it will support remote streaming, the maximum size of file uploads and how it will<br />

respond to HTTP cache headers in requests.<br />

Topics in this section:<br />

handleSelect Element<br />

requestParsers Element<br />

httpCaching Element<br />

handleSelect Element<br />

handleSelect is for legacy back-compatibility; those new to <strong>Solr</strong> do not need to change anything about<br />

the way this is configured by default.<br />

The first configurable item is the handleSelect attribute on the element itself. This<br />

attribute can be set to one of two values, either "true" or "false". It governs how <strong>Solr</strong> responds to requests such<br />

as /select?qt=XXX. The default value "false" will ignore requests to /select if a requestHandler is not<br />

explicitly registered with the name /select. A value of "true" will route query requests to the parser defined with<br />

the qt value.<br />

In recent versions of <strong>Solr</strong>, a /select requestHandler is defined by default, so a value of "false" will work fine.<br />

See the section RequestHandlers and SearchComponents in <strong>Solr</strong>Config for more information.<br />

<br />

...<br />

<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

456

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!