[ 
https://issues.apache.org/jira/browse/SOLR-12345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16475514#comment-16475514
 ] 

Dan Rosher commented on SOLR-12345:
-----------------------------------

because the collator only works with suggestions and 
org.apache.lucene.search.spell.SpellChecker.suggestSimilar skips a suggestion 
if it equals the word .....

// don't suggest a word for itself, that would be silly
 if (sugWord.string.equals(word)) {
 continue;
 } ....

This patch will include, along with existing suggestions, correctly spelt words 
in the collator and indicate to the client those that are spelt correctly.

> indicate correctly spelt words and add to collation for search
> --------------------------------------------------------------
>
>                 Key: SOLR-12345
>                 URL: https://issues.apache.org/jira/browse/SOLR-12345
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: spellchecker
>    Affects Versions: 7.2
>            Reporter: Dan Rosher
>            Priority: Minor
>         Attachments: SOLR-12345.patch, docs.xml, solrconfig.xml, spellings.txt
>
>
> Add 'correctlySpelled' boolean for each suggestion + add correctly spelt 
> words to collation possibilities



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to