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

Wrong JSON response using Terms Component with distrib=true

    XMLWordPrintableJSON

    Details

      Description

      When using TermsComponent in SolrCloud there are differences in the JSON response if parameter distrib is true or false. If distrib=true JSON is not well formed (please note at the [ ] marks)

      JSON Response when distrib=false. Correct response:
      {"responseHeader":{
      "status":0,
      "QTime":3
      },
      "terms":

      { "FileType": [ "EMAIL",20060, "PDF",7051, "IMAGE",5108, "OFFICE",4912, "TXT",4405, "OFFICE_EXCEL",4122, "OFFICE_WORD",2468 ] } }

      JSON Response when distrib=true. Incorrect response:
      {
      "responseHeader":{
      "status":0,
      "QTime":94
      },
      "terms":{
      "FileType":

      { "EMAIL":31923, "PDF":11545, "IMAGE":9807, "OFFICE_EXCEL":8195, "OFFICE":5147, "OFFICE_WORD":4820, "TIFF":1156, "XML":851, "HTML":821, "RTF":303 }


      } }

        Attachments

        1. SOLR-7530.patch
          2 kB
          Munendra S N
        2. SOLR-7530.patch
          10 kB
          Mikhail Khludnev
        3. SOLR-7530.patch
          10 kB
          Munendra S N
        4. SOLR-7530.patch
          10 kB
          Munendra S N
        5. SOLR-7530.patch
          10 kB
          Mikhail Khludnev
        6. SOLR-7530.patch
          3 kB
          Mikhail Khludnev
        7. SOLR-7530.patch
          9 kB
          Munendra S N

          Issue Links

            Activity

              People

              • Assignee:
                mkhl Mikhail Khludnev
                Reporter:
                raulgrande83 Raúl Grande
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: