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.

used instead of the default.<br />

First-Components and Last-Components<br />

It's possible to define some components as being used before (with first-components) or after (with<br />

omponents) the default components listed above.<br />

last-c<br />

first-components and/or last-components may only be used in conjunction with the default<br />

components. If you define your own components, the default components will not be executed, and fir<br />

st-components and last-components are disallowed.<br />

<br />

mycomponent<br />

<br />

<br />

spellcheck<br />

<br />

Components<br />

If you define components, the default components (see above) will not be executed, and first-components<br />

and last-components are disallowed:<br />

<br />

mycomponent<br />

query<br />

debug<br />

<br />

Other Useful Components<br />

Many of the other useful components are described in sections of this <strong>Guide</strong> for the features they support. These<br />

are:<br />

SpellCheckComponent, described in the section Spell Checking.<br />

TermVectorComponent, described in the section The Term Vector Component.<br />

QueryElevationComponent, described in the section The Query Elevation Component.<br />

TermsComponent, described in the section The Terms Component.<br />

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

An section of solrconfig.xml allows you to define request handler parameters outside of<br />

the handler configuration.<br />

The use cases are<br />

Some handlers are implicitly defined in code and there should be a way to add/append/override some of<br />

the implicitly defined properties<br />

There are a few properties that are used across handlers . This helps you keep only a single definition of<br />

those properties and apply them over multiple handlers<br />

For example, if you want several of your search handlers to return the same list of fields, you can create an section without having to define the same set of parameters in each request handler definition. If you<br />

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

447

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

Saved successfully!

Ooh no, something went wrong!