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

JSON response writer mangles type in some cases for ExternalFileFields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.1
    • Response Writers
    • None

    Description

      When using an external file field (containing, say, reads), values in the field can be returned using &fl=field(reads), yielding something like:

      {"response":{"numFound":...,"start":0,"maxScore":1.0,"docs":[

      {"field(reads)":0.0}

      ]}}

      In the response, the field can be renamed to, say, views like this: &fl=views:field(reads), yielding something like:

      {"response":{"numFound":...,"start":0,"maxScore":1.0,"docs":[

      {"views":0.0}

      ]}}

      If, in this case, the field is renamed to reads: &fl=reads:field(reads), the result is now:

      {"response":{"numFound":...,"start":0,"maxScore":1.0,"docs":[

      {"reads":[0.0]}

      ]}}

      (the 0.0 reads are now encapsulated in a list).

      The same problem does not occur in the XML response writer.

      Attachments

        1. SOLR-4036.patch
          1 kB
          Yonik Seeley

        Issue Links

          Activity

            People

              Unassigned Unassigned
              makissuu Martin Koch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: