11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

client requests facets, the facets defined with a configuration like this are the only facets they will see.<br />

The final section of a request handler definition is components, which defines a list of search components that<br />

can be used with a request handler. They are only registered with the request handler. How to define a search<br />

component is discussed further on in the section on Search Components. The components element can only be<br />

used with a request handler that is a SearchHandler.<br />

The solrconfig.xml file includes many other examples of SearchHandlers that can be used or modified as<br />

needed.<br />

UpdateRequestHandlers<br />

The UpdateRequestHandlers are request handlers which process updates to the index.<br />

In this guide, we've covered these handlers in detail in the section Uploading Data with Index Handlers.<br />

ShardHandlers<br />

It is possible to configure a request handler to search across shards of a cluster, used with distributed search.<br />

More information about distributed search and how to configure the shardHandler is in the section Distributed<br />

Search with Index Sharding.<br />

Other Request Handlers<br />

There are other request handlers defined in<br />

RealTime Get<br />

Index Replication<br />

Ping<br />

solrconfig.xml, covered in other sections of this guide:<br />

Search Components<br />

Search components define the logic that is used by the SearchHandler to perform queries for users.<br />

Default Components<br />

There are several default search components that work with all SearchHandlers without any additional<br />

configuration. If no components are defined (with the exception of first-components and last-component<br />

s - see below), these are executed by default, in the following order:<br />

Component<br />

Name<br />

Class Name<br />

More Information<br />

query solr.QueryComponent Described in the section Query Syntax and Parsing.<br />

facet solr.FacetComponent Described in the section Faceting.<br />

mlt solr.MoreLikeThisComponent Described in the section MoreLikeThis.<br />

highlight solr.HighlightComponent Described in the section Highlighting.<br />

stats solr.StatsComponent Described in the section The Stats Component.<br />

debug solr.DebugComponent Described in the section on Common Query Parameters<br />

.<br />

expand solr.ExpandComponent Described in the section Collapse and Expand Results.<br />

If you register a new search component with one of these default names, the newly defined component will be<br />

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

446

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

Saved successfully!

Ooh no, something went wrong!