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

function results' names should not include trailing whitespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • search
    • None

    Description

      If you include a function as a result field in a list of multiple fields separated by white space, the corresponding key in the result markup includes trailing whitespace; Example:

      fl="id field(units_used) archive_id"
      

      ends up returning results like this:

            {
              "id": "nest.epubarchive.1",
              "archive_id": "urn:isbn:97849D42C5A01",
              "field(units_used) ": 123
                                ^
            }
      

      A workaround is to use comma separators instead of whitespace

       
      fl="id,field(units_used),archive_id"
      

      Attachments

        1. SOLR-6672.patch
          6 kB
          Munendra S N
        2. SOLR-6672.patch
          0.8 kB
          Munendra S N

        Activity

          People

            Unassigned Unassigned
            sokolov Michael Sokolov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: