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

Shalin Shekhar Mangar commented on SOLR-609:
--------------------------------------------

The accuracy request parameter is not supported by this component. The request 
handler accepts the accuracy as a request parameter and calls Lucene 
SpellChecker.setAccuracy before getting the suggestion. However, this is 
neither thread-safe nor can we guarantee that the accuracy is actually enforced 
for the suggestion.

However, you can set the accuracy as a configuration parameter just like you 
set the spellCheckIndexDir. I shall update the wiki documentation with this bit.

> SpellCheckComponent doesn't read default options from solrconfig.xml
> --------------------------------------------------------------------
>
>                 Key: SOLR-609
>                 URL: https://issues.apache.org/jira/browse/SOLR-609
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 1.3
>         Environment: confirmed on FreeBSD7-stable , nightly 1.3 build 
> (2008-06-25) , jdk1.6.
> I am using the spellchecker called as last-components from my dismax handler.
>            Reporter: Norberto Meijome
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: SOLR-609.patch
>
>
> solrconfig.xml contains :
> [...]
> <searchComponent name="ArtistSpellCheck"
>               class="org.apache.solr.handler.component.SpellCheckComponent">
>               <lst name="defaults">
>                       <!-- omp = Only More Popular -->
>                       <str name="spellcheck.onlyMorePopular">false</str>
>                       <!-- exr = Extended Results -->
>                       <str name="spellcheck.extendedResults">true</str>
>                       <!--  The number of suggestions to return -->
>                       <str name="spellcheck.count">1</str>
>                       <!--  collate ther results for providing an easier 
> 'correctly spelt query' -->
>                       <str name="spellcheck.collate">true</str>
>               </lst>
> [... all default options after this]
> confirmed options .count , collate , extendedResults set in solrconfig.xml 
> take no effect on the query . They work as intended if added to the URL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to