[
https://issues.apache.org/jira/browse/SOLR-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14935265#comment-14935265
]
ASF subversion and git services commented on SOLR-8104:
-------------------------------------------------------
Commit 1705870 from [~noble.paul] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1705870 ]
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: [email protected]
For additional commands, e-mail: [email protected]