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

Poor json formatting of spelling collation info

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-ALPHA
    • 5.0, 6.0
    • spellchecker
    • None

    Description

      "spellcheck": {
          "suggestions": [
          "dalllas",
          {
      <snip>
              {
                  "word": "canallas",
                  "freq": 1
              }
              ]
          },
          "correctlySpelled",
          false,
          "collation",
          "dallas"
          ]
      }
      

      The correctlySpelled and collation key/values are stored as consecutive elements in an array - quite odd. Is there a reason isn't not a key/value map like most things?

      Attachments

        1. SOLR-3029.patch
          28 kB
          James Dyer
        2. SOLR-3029.patch
          30 kB
          Nalini Kartha
        3. SOLR-3029.patch
          0.8 kB
          Rafał Kuć

        Issue Links

          Activity

            People

              jdyer James Dyer
              astubbs Antony Stubbs
              Votes:
              3 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: