lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varun Thacker (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SOLR-8104) config API does not work for spellchecker
Date Thu, 11 Feb 2016 03:29:18 GMT

     [ https://issues.apache.org/jira/browse/SOLR-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Varun Thacker resolved SOLR-8104.
---------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 5.5)
                   5.4

Marking it resolved for Solr 5.3 based on the CHANGES file.

> 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
>             Fix For: master, 5.4
>
>         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


Mime
View raw message