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

Replace json.nl=arrnvp with json.nl=arrntv (array of Name Type Value) style in JSONResponseWriter

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      This follows on from and builds upon SOLR-9442's addition of json.nl=arrnvp style. See https://issues.apache.org/jira/browse/SOLR-9442?focusedCommentId=15664719&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15664719 onwards for background info.

      Example:

      NamedList("a"=1,"bar”=“foo",null=3.4f,null=null)
      =>
      [
        { "name":"a",   "type":"int",   "value":1     },
        { "name":"bar", "type":"str",   "value":"foo" },
        { "name":null,  "type":"float", "value":3.4   },
        { "name":null,  "type":"null",  "value":null  }
      ]
      

      This style maintains the type information of the values, similar to the xml format:

      <lst name=“someField”>
        <int name=“a”>1</int>
        <str name=“bar”>foo</str>
        <float>3.4</float>
        <null/>
      </lst>
      
      1. SOLR-9787.patch
        12 kB
        Jonny Marks
      2. SOLR-9787.patch
        14 kB
        Christine Poerschke

        Issue Links

          Activity

          Hide
          jm100 Jonny Marks added a comment -

          I plan to work on this in the first half of December

          Show
          jm100 Jonny Marks added a comment - I plan to work on this in the first half of December
          Hide
          jm100 Jonny Marks added a comment -

          arrntv patch attached

          Show
          jm100 Jonny Marks added a comment - arrntv patch attached
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit e4ef4239f1b23afb116868e8528f1cd947287bd9 in lucene-solr's branch refs/heads/master from Christine Poerschke
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e4ef423 ]

          SOLR-9787, SOLR-9442: Replace json.nl=arrnvp with json.nl=arrntv (array of Name Type Value) style in JSONResponseWriter

          Show
          jira-bot ASF subversion and git services added a comment - Commit e4ef4239f1b23afb116868e8528f1cd947287bd9 in lucene-solr's branch refs/heads/master from Christine Poerschke [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e4ef423 ] SOLR-9787 , SOLR-9442 : Replace json.nl=arrnvp with json.nl=arrntv (array of Name Type Value) style in JSONResponseWriter
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 73e50ceceb836421a176fe0fa2098a20b3c8a304 in lucene-solr's branch refs/heads/branch_6x from Christine Poerschke
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=73e50ce ]

          SOLR-9787, SOLR-9442: Replace json.nl=arrnvp with json.nl=arrntv (array of Name Type Value) style in JSONResponseWriter

          Show
          jira-bot ASF subversion and git services added a comment - Commit 73e50ceceb836421a176fe0fa2098a20b3c8a304 in lucene-solr's branch refs/heads/branch_6x from Christine Poerschke [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=73e50ce ] SOLR-9787 , SOLR-9442 : Replace json.nl=arrnvp with json.nl=arrntv (array of Name Type Value) style in JSONResponseWriter
          Show
          cpoerschke Christine Poerschke added a comment - https://cwiki.apache.org/confluence/display/solr/Response+Writers#ResponseWriters-JSONResponseWriter updated to include example for json.nl=arrntv

            People

            • Assignee:
              cpoerschke Christine Poerschke
              Reporter:
              cpoerschke Christine Poerschke
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development