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

James Dyer commented on SOLR-4278:
----------------------------------

Scott,

You can tell if the user's keywords exist in the index on a term-by-term basis 
by specifying "spellcheck.extendedResults=true".  Then look under each <lst 
name="ORIG_KEYWORD"> for <int name="origFreq">0</int>.  If "origFreq" is 0, 
then it is not in the dictionary.  Of course, this doesn't really tell you if 
the keyword is correctly spelled!  Perhaps it is correct but the user is 
looking for something you don't have.  Or maybe it is incorrect in context but 
occurs in the dictionary.  In your case, you may wish to turn off 
"alternateTermCount" or set it to a very low value.  This will reduce junk 
suggestions.
                
> Spellchecker correctlySpelled flag is improperly false in many cases
> --------------------------------------------------------------------
>
>                 Key: SOLR-4278
>                 URL: https://issues.apache.org/jira/browse/SOLR-4278
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>            Reporter: Jack Krupansky
>
> I issued a request to the /spell request handler with no misspellings, but 
> the response still have a value of "false" for the "correctlySpelled" flag.
> Using the Solr 4.0 example, I added some mini documents:
> {code}
> curl http://localhost:8983/solr/update?commit=true -H 
> 'Content-type:application/csv' -d '
> id,name
> spel-1,aardvark abacus ball bill cat cello
> spel-2,abate accord band bell cattle check
> spel-3,adorn border clean clock'
> {code}
> Then I issued this request to the /spell handler:
> {code}
> curl "http://localhost:8983/solr/spell/?q=abate&indent=true";
> {code}
> The response indicates that no corrections were needed, but the 
> "correctlySpelled" flag is "false" when it should be "true".
> {code}
> <lst name="spellcheck">
>   <lst name="suggestions">
>     <bool name="correctlySpelled">false</bool>
>   </lst>
> </lst>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to