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

config API does not work for spellchecker

    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

        1. SOLR-8104.patch
          9 kB
          Noble Paul

        Activity

          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: