Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8104

config API does not work for spellchecker

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.4, 6.0
    • None
    • None

    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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            noble.paul Noble Paul
            noble.paul Noble Paul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment