You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cassandra Targett (JIRA)" <ji...@apache.org> on 2018/01/12 19:08:00 UTC

[jira] [Commented] (SOLR-6672) function results' names should not include trailing whitespace

    [ https://issues.apache.org/jira/browse/SOLR-6672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16324404#comment-16324404 ] 

Cassandra Targett commented on SOLR-6672:
-----------------------------------------

I can still reproduce this with 7.2. Index the example docs and do something like: {{http://localhost:8983/solr/techproducts/select?fl=id%20add(1,2)%20score&q=name:game}}, and you get an output like:

{code}
"response":{"numFound":2,"start":0,"maxScore":3.5124934,"docs":[
      {
        "id":"0812550706",
        "add(1,2) ":3.0,
        "score":3.5124934},
      {
        "id":"0553573403",
        "add(1,2) ":3.0,
        "score":2.9619396}]
  }
{code}

> function results' names should not include trailing whitespace
> --------------------------------------------------------------
>
>                 Key: SOLR-6672
>                 URL: https://issues.apache.org/jira/browse/SOLR-6672
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>            Reporter: Mike Sokolov
>            Priority: Minor
>
> 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:
> {code}
> fl="id field(units_used) archive_id"
> {code}
> ends up returning results like this:
> {code}
>       {
>         "id": "nest.epubarchive.1",
>         "archive_id": "urn:isbn:97849D42C5A01",
>         "field(units_used) ": 123
>                           ^
>       }
> {code}
> A workaround is to use comma separators instead of whitespace
> {code} 
> fl="id,field(units_used),archive_id"
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org