lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Sokolov <msoko...@safaribooksonline.com>
Subject function results' names include trailing whitespace
Date Wed, 29 Oct 2014 11:38:27 GMT
I noticed that when you include a function as a result field, the 
corresponding key in the result markup includes trailing whitespace, 
which seems like a bug.  I wonder if anyone knows if there is a ticket 
for this already?

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 something like:

fl="id field(units_used)archive_id"

instead, but it seems inelegant, and not consistent with the treatment 
of other fields

-Mike

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message