[
https://issues.apache.org/jira/browse/SOLR-2993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182790#comment-13182790
]
James Dyer commented on SOLR-2993:
----------------------------------
{quote}
So "spa llcheck" is preferred over "spellcheck" if spa has more hits then
spellcheck.
{quote}
I honestly didn't try this much with queries having all optional terms. I see
what you mean, though that you might prefer it just leave the misspelled word
in there if its an optional term anyhow. But wouldn't the query, in addition
to giving spelling suggestions, also return some results because it would
ignore the optional & misspelled query terms? If that's the case, your app can
look at the results you got back and compare that to the collation options and
determine what to do from there.
{quote}
no suggestions were given when both word fragments were spelled correctly
{quote}
As discussed in SOLR-2585, you can't get suggestions for terms that are in the
index, unless you specify "spellcheck.onlyMorePopular=true". Of course
"onlyMorePopular" can have its own unintended consequences. Hopefully someday
in the not too distant future we'll be in a state where we can have both this
issue and SOLR-2585 working together.
> Integrate WordBreakSpellChecker with Solr
> -----------------------------------------
>
> Key: SOLR-2993
> URL: https://issues.apache.org/jira/browse/SOLR-2993
> Project: Solr
> Issue Type: Improvement
> Components: SolrCloud, spellchecker
> Affects Versions: 4.0
> Reporter: James Dyer
> Priority: Minor
> Fix For: 4.0
>
> Attachments: SOLR-2993.patch
>
>
> A SpellCheckComponent enhancement, leveraging the WordBreakSpellChecker from
> LUCENE-3523:
> - Detect spelling errors resulting from misplaced whitespace without the use
> of shingle-based dictionaries.
> - Seamlessly integrate word-break suggestions with single-word spelling
> corrections from the existing FileBased-, IndexBased- or Direct- spell
> checkers.
> - Provide collation support for word-break errors including cases where the
> user has a mix of single-word spelling errors and word-break errors in the
> same query.
> - Provide shard support.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]