lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-4036) JSON response writer mangles type in some cases for ExternalFileFields
Date Tue, 13 Nov 2012 00:39:12 GMT

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

Yonik Seeley commented on SOLR-4036:
------------------------------------

I've reproduced something similar w/o external file field.
It looks like if you are aliasing to a field that exists in the schema, it's picking up multiValued
from there.

For example: fl=abc:id correctly yields single values, while fl=cat:id yields the value in
an array.
                
> JSON response writer mangles type in some cases for ExternalFileFields
> ----------------------------------------------------------------------
>
>                 Key: SOLR-4036
>                 URL: https://issues.apache.org/jira/browse/SOLR-4036
>             Project: Solr
>          Issue Type: Bug
>          Components: Response Writers
>    Affects Versions: 4.0
>            Reporter: Martin Koch
>
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message