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.

The spellcheck.alternativeTermCount Parameter<br />

Specify the number of suggestions to return for each query term existing in the index and/or dictionary.<br />

Presumably, users will want fewer suggestions for words with docFrequency>0. Also setting this value turns "on"<br />

context-sensitive spell suggestions.<br />

The spellcheck.extendedResults Parameter<br />

This parameter causes to <strong>Solr</strong> to include additional information about the suggestion, such as the frequency in<br />

the index.<br />

The spellcheck.collate Parameter<br />

If true, this parameter directs <strong>Solr</strong> to take the best suggestion for each token (if one exists) and construct a new<br />

query from the suggestions. For example, if the input query was "jawa class lording" and the best suggestion for<br />

"jawa" was "java" and "lording" was "loading", then the resulting collation would be "java class loading".<br />

The spellcheck.collate parameter only returns collations that are guaranteed to result in hits if re-queried, even<br />

when applying original fq parameters. This is especially helpful when there is more than one correction per<br />

query.<br />

This only returns a query to be used. It does not actually run the suggested query.<br />

The spellcheck.maxCollations Parameter<br />

The maximum number of collations to return. The default is 1. This parameter is ignored if spellcheck.colla<br />

te is false.<br />

The spellcheck.maxCollationTries Parameter<br />

This parameter specifies the number of collation possibilities for <strong>Solr</strong> to try before giving up. Lower values ensure<br />

better performance. Higher values may be necessary to find a collation that can return results. The default value<br />

is 0, which maintains backwards-compatible (<strong>Solr</strong> 1.4) behavior (do not check collations). This parameter is<br />

ignored if spellcheck.collate is false.<br />

The spellcheck.maxCollationEvaluations Parameter<br />

This parameter specifies the maximum number of word correction combinations to rank and evaluate prior to<br />

deciding which collation candidates to test against the index. This is a performance safety-net in case a user<br />

enters a query with many misspelled words. The default is 10,000 combinations, which should work well in most<br />

situations.<br />

The spellcheck.collateExtendedResults Parameter<br />

If true, this parameter returns an expanded response format detailing the collations <strong>Solr</strong> found. The default value<br />

is false and this is ignored if spellcheck.collate is false.<br />

The spellcheck.collateMaxCollectDocs Parameter<br />

This parameter specifies the maximum number of documents that should be collect when testing potential<br />

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

329

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

Saved successfully!

Ooh no, something went wrong!