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.

childFilter - query to filter which child documents should be included, this can be particularly useful<br />

when you have multiple levels of hierarchical documents (default: all children)<br />

limit - the maximum number of child documents to be returned per parent document (default: 10)<br />

[shard] - ShardAugmenterFactory<br />

This transformer adds information about what shard each individual document came from in a distributed<br />

request.<br />

ShardAugmenterFactory does not support any request parameters, or configuration options.<br />

[docid] - DocIdAugmenterFactory<br />

This transformer adds the internal Lucene document id to each document – this is primarily only useful for<br />

debugging purposes.<br />

DocIdAugmenterFactory does not support any request parameters, or configuration options.<br />

[elevated] and [excluded]<br />

These transformers are available only when using the Query Elevation Component.<br />

[elevated] annotates each document to indicate if it was elevated or not.<br />

[excluded] annotates each document to indicate if it would have been excluded - this is only supported<br />

if you also use the markExcludes parameter.<br />

fl=id,[elevated],[excluded]&excludeIds=GB18030TEST&elevateIds=6H500F0&markExcludes=t<br />

rue<br />

"response":{"numFound":32,"start":0,"docs":[<br />

{<br />

"id":"6H500F0",<br />

"[elevated]":true,<br />

"[excluded]":false},<br />

{<br />

"id":"GB18030TEST",<br />

"[elevated]":false,<br />

"[excluded]":true},<br />

{<br />

"id":"SP2514N",<br />

"[elevated]":false,<br />

"[excluded]":false},<br />

...<br />

Suggester<br />

The SuggestComponent in <strong>Solr</strong> provides users with automatic suggestions for query terms. You can use this to<br />

implement a powerful auto-suggest feature in your search application.<br />

Although it is possible to use the Spell Checking functionality to power autosuggest behavior, <strong>Solr</strong> has a<br />

dedicated SuggestComponent designed for this functionality. This approach utilizes Lucene's Suggester<br />

implementation and supports all of the lookup implementations available in Lucene.<br />

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

335

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

Saved successfully!

Ooh no, something went wrong!