You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/09/29 15:32:05 UTC

[jira] [Commented] (SOLR-8104) config API does not work for spellchecker

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

ASF subversion and git services commented on SOLR-8104:
-------------------------------------------------------

Commit 1705858 from [~noble.paul] in branch 'dev/trunk'
[ https://svn.apache.org/r1705858 ]

SOLR-8104: Config API does not work for spellchecker

> config API does not work for spellchecker
> -----------------------------------------
>
>                 Key: SOLR-8104
>                 URL: https://issues.apache.org/jira/browse/SOLR-8104
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>         Attachments: SOLR-8104.patch
>
>
> A command as follows fails
> {code}
> curl http://localhost:8983/solr/gettingstarted/config -H 'Content-type:application/json'  -d '
> {
>     "add-searchcomponent": {
>         "name": "myspellcheck",
>         "class": "solr.SpellCheckComponent",
>         "queryAnalyzerFieldType": "text_general",
>         "spellchecker": {
>             "name": "default",
>             "field": "_text_",
>             "class": "solr.DirectSolrSpellChecker"
>         }
>     }
> }'
> {code}
> and there is no possible alternative
> The reason is {{SeachComponent}} expects a {{NamedList}} with the name "spellchecker" . But json does not support NamedList



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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