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.

Although the stats.facet parameter is no longer recommended, sets of stats.field parameters can be<br />

referenced by ' tag' when using Pivot Faceting to compute multiple statistics at every level (i.e.: field) in the tree<br />

of pivot constraints.<br />

For more information and a detailed example, please see Combining Stats Component With Pivots.<br />

The Query Elevation Component<br />

The Query Elevation Component lets you configure the top results for a given query regardless of the normal<br />

Lucene scoring. This is sometimes called "sponsored search," "editorial boosting," or "best bets." This<br />

component matches the user query text to a configured map of top results. The text can be any string or<br />

non-string IDs, as long as it's indexed. Although this component will work with any QueryParser, it makes the<br />

most sense to use with DisMax or eDisMax.<br />

The Query Elevation Component is supported by distributed searching.<br />

All of the sample configuration and queries used in this section assume you are running <strong>Solr</strong>'s " techproducts"<br />

example:<br />

bin/solr -e techproducts<br />

Configuring the Query Elevation Component<br />

You can configure the Query Elevation Component in the solrconfig.xml file.<br />

<br />

<br />

string<br />

elevate.xml<br />

<br />

<br />

<br />

explicit<br />

<br />

<br />

elevator<br />

<br />

<br />

Optionally, in the Query Elevation Component configuration you can also specify the following to distinguish<br />

editorial results from "normal" results:<br />

foo<br />

The Query Elevation Search Component takes the following arguments:<br />

Argument<br />

queryFieldType<br />

Description<br />

Specifies which fieldType should be used to analyze the incoming text. For example, it<br />

may be appropriate to use a fieldType with a LowerCaseFilter.<br />

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

390

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

Saved successfully!

Ooh no, something went wrong!