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.

5<br />

<br />

<br />

5<br />

<br />

The " value" option forces an explicit value to always be used, while the " defaultValue" option provides a<br />

default that can still be overridden using the " v" and " t" local parameters.<br />

[explain] - ExplainAugmenterFactory<br />

Augments each document with an inline explanation of it's score exactly like the information available about each<br />

document in the debug section:<br />

q=features:cache&wt=json&fl=id,[explain style=nl]<br />

Supported values for " style" are " text", and " html", and "nl" which returns the information as structured data:<br />

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

{<br />

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

"[explain]":{<br />

"match":true,<br />

"value":1.052226,<br />

"description":"weight(features:cache in 2) [DefaultSimilarity], result<br />

of:",<br />

"details":[{<br />

...<br />

A default style can be configured by specifying an "args" parameter in your configuration:<br />

<br />

nl<br />

<br />

[child] - ChildDocTransformerFactory<br />

This transformer returns all descendant documents of each parent document matching your query in a flat list<br />

nested inside the matching parent document. This is useful when you have indexed nested child documents and<br />

want to retrieve the child documents for the relevant parent documents for any type of search query.<br />

fl=id,[child parentFilter=doc_type:book childFilter=doc_type:chapter limit=100]<br />

Note that this transformer can be used even though the query itself is not a Block Join query.<br />

When using this transformer, the parentFilter parameter must be specified, and works the same as in all<br />

Block Join Queries, additional optional parameters are:<br />

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

334

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

Saved successfully!

Ooh no, something went wrong!