lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nihed mbarek (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-4666) JSON Formating
Date Thu, 04 Apr 2013 09:25:15 GMT

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

nihed mbarek edited comment on SOLR-4666 at 4/4/13 9:23 AM:
------------------------------------------------------------

[~hossman] I just reproduce the problem with the default collection1 example.
to do that I used the default schema with 
<dynamicField name="*" type="ignored" multiValued="true" />

schema link : https://issues.apache.org/jira/secure/attachment/12576952/schema.xml

my new discover is that the problem concern the alias : 

for example 
for fl = score, idProd:id
I will have : 
 {
        "score":[1.0],
        "idProd":["GB18030TEST"]},
      {
        "score":[1.0],
        "idProd":["SP2514N"]},
      {
        "score":[1.0],
        "idProd":["6H500F0"]},
                
      was (Author: nihed):
    [~hossman] I just reproduce the problem with the default collection1 example.
to do that I used the default schema with 
<dynamicField name="*" type="ignored" multiValued="true" />

my new discover is that the problem concern the alias : 

for example 
for fl = score, idProd:id
I will have : 
 {
        "score":[1.0],
        "idProd":["GB18030TEST"]},
      {
        "score":[1.0],
        "idProd":["SP2514N"]},
      {
        "score":[1.0],
        "idProd":["6H500F0"]},
                  
> JSON Formating
> --------------
>
>                 Key: SOLR-4666
>                 URL: https://issues.apache.org/jira/browse/SOLR-4666
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.0
>         Environment: Linux server with Tomcat as application server 
>            Reporter: nihed mbarek
>         Attachments: schema.xml
>
>
> Dear, 
> We discover that some fields (not multivalued) was formated as multivalued for JSON output
when on our schema we add : 
> bq.   ??<dynamicField name="*" type="ignored" multiValued="true" />??
> in other terms, an internal field like score will be displayed as : 
> bq. ??"score":[2.9204934],??
> and not :
> bq. ??"score":4.5376997,??
> there is no problem with xml output.

--
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