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.

If term vectors are not stored, MoreLikeThis will generate terms from stored fields. A uniqueKey must also<br />

be stored in order for MoreLikeThis to work properly.<br />

The next phase filters terms from the original document using thresholds defined with the MoreLikeThis<br />

parameters. Finally, a query is run with these terms, and any other query parameters that have been defined<br />

(see the mlt.qf parameter, below) and a new document set is returned.<br />

Common Parameters for MoreLikeThis<br />

The table below summarizes the MoreLikeThis parameters supported by Lucene/<strong>Solr</strong>. These parameters can<br />

be used with any of the three possible MoreLikeThis approaches.<br />

Parameter<br />

Description<br />

mlt.fl Specifies the fields to use for similarity. If possible, these should have stored termVectors.<br />

mlt.mintf<br />

mlt.mindf<br />

mlt.maxdf<br />

mlt.minwl<br />

mlt.maxwl<br />

mlt.maxqt<br />

mlt.maxntp<br />

mlt.boost<br />

mlt.qf<br />

Specifies the Minimum Term Frequency, the frequency below which terms will be ignored in the<br />

source document.<br />

Specifies the Minimum Document Frequency, the frequency at which words will be ignored which<br />

do not occur in at least this many documents.<br />

Specifies the Maximum Document Frequency, the frequency at which words will be ignored<br />

which occur in more than this many documents.<br />

Sets the minimum word length below which words will be ignored.<br />

Sets the maximum word length above which words will be ignored.<br />

Sets the maximum number of query terms that will be included in any generated query.<br />

Sets the maximum number of tokens to parse in each example document field that is not stored<br />

with TermVector support.<br />

Specifies if the query will be boosted by the interesting term relevance. It can be either "true" or<br />

"false".<br />

Query fields and their boosts using the same format as that used by the DisMaxRequestHandler.<br />

These fields must also be specified in mlt.fl.<br />

Parameters for the MoreLikeThisComponent<br />

Using MoreLikeThis as a search component returns similar documents for each document in the response set. In<br />

addition to the common parameters, these additional options are available:<br />

Parameter<br />

Description<br />

mlt If set to true, activates the MoreLikeThis component and enables <strong>Solr</strong> to return MoreLikeThi<br />

s results.<br />

mlt.count Specifies the number of similar documents to be returned for each result. The default value is 5.<br />

Parameters for the MoreLikeThisHandler<br />

The table below summarizes parameters accessible through the<br />

MoreLikeThisHandler.<br />

It supports faceting,<br />

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

346

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

Saved successfully!

Ooh no, something went wrong!