Description
A command as follows fails
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" } } }'
and there is no possible alternative
The reason is SeachComponent expects a NamedList with the name "spellchecker" . But json does not support NamedList