[
https://issues.apache.org/jira/browse/SOLR-10263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15946518#comment-15946518
]
Abhishek Kumar Singh edited comment on SOLR-10263 at 3/29/17 4:42 AM:
----------------------------------------------------------------------
The _solrconfig.xml_ of *WordBreakSolrSpellChecker* ( and later, for all
the components) can be configured like this :-
{code:xml}
<lst name="spellchecker">
<str name="name">spellcheckword</str>
<str name="classname">solr.WordBreakSolrSpellChecker</str>
<str name="field">fieldspell</str>
<str name="combineWords">true</str>
<str name="breakWords">true</str>
<int name="maxChanges">10</int>
<int name="minPrefix">0</int>
<str name="suggestMode">SUGGEST_WHEN_NOT_IN_INDEX</str>
</lst>
{code}
was (Author: asingh2411):
The _solrconfig.xml_ *WordBreakSolrSpellChecker* and later, for all the
components can be configured like this :-
{code:xml}
<lst name="spellchecker">
<str name="name">spellcheckword</str>
<str name="classname">solr.WordBreakSolrSpellChecker</str>
<str name="field">fieldspell</str>
<str name="combineWords">true</str>
<str name="breakWords">true</str>
<int name="maxChanges">10</int>
<int name="minPrefix">0</int>
<str name="suggestMode">SUGGEST_WHEN_NOT_IN_INDEX</str>
</lst>
{code}
> Different SpellcheckComponents should have their own suggestMode
> ----------------------------------------------------------------
>
> Key: SOLR-10263
> URL: https://issues.apache.org/jira/browse/SOLR-10263
> Project: Solr
> Issue Type: Wish
> Security Level: Public(Default Security Level. Issues are Public)
> Components: spellchecker
> Reporter: Abhishek Kumar Singh
> Priority: Minor
>
> As of now, common spellcheck options are applied to all the
> SpellCheckComponents.
> This can create problem in the following case:-
> It may be the case that we want *DirectSolrSpellChecker* to ALWAYS_SUGGEST
> spellcheck suggestions.
> But we may want *WordBreakSpellChecker* to suggest only if the token is not
> in the index (SUGGEST_WHEN_NOT_IN_INDEX) .
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]