[
https://issues.apache.org/jira/browse/SOLR-4278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13546423#comment-13546423
]
Jack Krupansky commented on SOLR-4278:
--------------------------------------
For reference, as I said, I was using the Solr 4.0 example. Here is the /spell
handler from there:
{code}
<requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
<lst name="defaults">
<str name="df">text</str>
<!-- Solr will use suggestions from both the 'default' spellchecker
and from the 'wordbreak' spellchecker and combine them.
collations (re-written queries) can include a combination of
corrections from both spellcheckers -->
<str name="spellcheck.dictionary">default</str>
<str name="spellcheck.dictionary">wordbreak</str>
<str name="spellcheck">on</str>
<str name="spellcheck.extendedResults">true</str>
<str name="spellcheck.count">10</str>
<str name="spellcheck.alternativeTermCount">5</str>
<str name="spellcheck.maxResultsForSuggest">5</str>
<str name="spellcheck.collate">true</str>
<str name="spellcheck.collateExtendedResults">true</str>
<str name="spellcheck.maxCollationTries">10</str>
<str name="spellcheck.maxCollations">5</str>
</lst>
<arr name="last-components">
<str>spellcheck</str>
</arr>
</requestHandler>
{code}
So, spellcheck.maxResultsForSuggest was 5 when I ran the original example.
> 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: [email protected]
For additional commands, e-mail: [email protected]