Solr
  1. Solr
  2. SOLR-8104

config API does not work for spellchecker

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1705858 from Noble Paul in branch 'dev/trunk'
        [ https://svn.apache.org/r1705858 ]

        SOLR-8104: Config API does not work for spellchecker

        Show
        ASF subversion and git services added a comment - Commit 1705858 from Noble Paul in branch 'dev/trunk' [ https://svn.apache.org/r1705858 ] SOLR-8104 : Config API does not work for spellchecker
        Hide
        ASF subversion and git services added a comment -

        Commit 1705859 from Noble Paul in branch 'dev/trunk'
        [ https://svn.apache.org/r1705859 ]

        SOLR-8104: removed nocommit

        Show
        ASF subversion and git services added a comment - Commit 1705859 from Noble Paul in branch 'dev/trunk' [ https://svn.apache.org/r1705859 ] SOLR-8104 : removed nocommit
        Hide
        ASF subversion and git services added a comment -

        Commit 1705870 from Noble Paul in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1705870 ]

        SOLR-8104: Config API does not work for spellchecker

        Show
        ASF subversion and git services added a comment - Commit 1705870 from Noble Paul in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1705870 ] SOLR-8104 : Config API does not work for spellchecker
        Hide
        Varun Thacker added a comment -

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

        Show
        Varun Thacker added a comment - Marking it resolved for Solr 5.3 based on the CHANGES file.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development