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

config API does not work for spellchecker

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4, 6.0
    • Component/s: None
    • Labels:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: