lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Munendra S N (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-6672) function results' names should not include trailing whitespace
Date Tue, 16 Jul 2019 05:53:00 GMT

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

Munendra S N commented on SOLR-6672:
------------------------------------

 [^SOLR-6672.patch] 
Patch with test cases.

> 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
>         Attachments: SOLR-6672.patch, SOLR-6672.patch
>
>
> 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
(v7.6.14#76016)

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


Mime
View raw message