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.

have a single request handler that should return different fields, you can define the overriding parameters in<br />

individual sections as usual.<br />

The properties and configuration of an section mirror the properties and configuration of a<br />

request handler. It can include sections for defaults, appends, and invariants, the same as any request handler.<br />

For example, here is one of the sections defined by default in the data_driven_config exam<br />

ple:<br />

<br />

<br />

_text_<br />

<br />

<br />

This sets the default search field ("df") to be "_text_" for all of the request handlers named in the path section. If<br />

we later want to change the /query request handler to search a different field by default, we could override the<br />

by defining the parameter in the section for /query.<br />

The syntax and semantics are similar to that of a<br />

property<br />

. The following are the attributes<br />

Description<br />

path<br />

name<br />

A comma-separated list of paths which will use the parameters. Wildcards can be used in paths to<br />

define nested paths, as described below.<br />

The name of this set of parameters. The name can be directly in a requestHandler definition if a<br />

path is not explicitly named. If you give your a name, you can refer to the params<br />

in a that is not defined as a path.<br />

For example, if an section has the name "myParams", you can call the name<br />

when defining your request handler:<br />

<br />

Wildcards<br />

An section can support wildcards to define nested paths that should use the parameters<br />

defined. A single asterisk (*) denotes that a nested path one level deeper should use the parameters. Double<br />

asterisks (**) denote all nested paths no matter how deep should use the parameters.<br />

For example, if we have an that looks like this:<br />

<br />

<br />

_text_<br />

<br />

<br />

10<br />

<br />

<br />

title<br />

<br />

<br />

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

448

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

Saved successfully!

Ooh no, something went wrong!