You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Przemysław Szeremiota (JIRA)" <ji...@apache.org> on 2018/03/14 16:35:00 UTC

[jira] [Updated] (SOLR-12094) JsonRecordReader ignores root fields after split

     [ https://issues.apache.org/jira/browse/SOLR-12094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Przemysław Szeremiota updated SOLR-12094:
-----------------------------------------
    Description: 
JsonRecordReader, when configured with other than top-level split, ignores all top-level JSON nodes after split ends, for example:

 

{\{{}}

{{  "first": "John",}}

{{  "last": "Doe",}}

{{  "grade": 8,}}

{{  "exams": [}}

{{    {}}

{{        "subject": "Maths",}}

{{        "test": "term1",}}

{{        "marks": 90}}

{{    },}}

{{    {}}

{{        "subject": "Biology",}}

{{        "test": "term1",}}

{{        "marks": 86}}

{{  ],}}

{{  "after": "456"}}{{}}}

 

Node "after" won't be visible in SolrInputDocument constructed from /update/json/docs.

 

I don't have fix, only (breaking) patch for relevant test

  was:
JsonRecordReader, when configured with other than top-level split, ignores all top-level JSON nodes after split ends, for example:

 

{{{}}

{{  "first": "John",}}

{{  "last": "Doe",}}

{{  "grade": 8,}}

{{  "exams": [}}

{{    {}}

{{        "subject": "Maths",}}

{{        "test": "term1",}}

{{        "marks": 90}}

{{    },}}

{{    {}}

{{        "subject": "Biology",}}

{{        "test": "term1",}}

{{        "marks": 86}}

{{    }}}

{{  ],}}

{{  "after": "456"}}{{}}}

 

Node "after" won't be visible in SolrInputDocument constructed from /update/json/docs.

 

I don't have fix, only (breaking) patch for relevant test


> JsonRecordReader ignores root fields after split
> ------------------------------------------------
>
>                 Key: SOLR-12094
>                 URL: https://issues.apache.org/jira/browse/SOLR-12094
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrJ
>    Affects Versions: master (8.0)
>            Reporter: Przemysław Szeremiota
>            Priority: Major
>         Attachments: json-record-reader-bug.patch
>
>
> JsonRecordReader, when configured with other than top-level split, ignores all top-level JSON nodes after split ends, for example:
>  
> {\{{}}
> {{  "first": "John",}}
> {{  "last": "Doe",}}
> {{  "grade": 8,}}
> {{  "exams": [}}
> {{    {}}
> {{        "subject": "Maths",}}
> {{        "test": "term1",}}
> {{        "marks": 90}}
> {{    },}}
> {{    {}}
> {{        "subject": "Biology",}}
> {{        "test": "term1",}}
> {{        "marks": 86}}
> {{  ],}}
> {{  "after": "456"}}{{}}}
>  
> Node "after" won't be visible in SolrInputDocument constructed from /update/json/docs.
>  
> I don't have fix, only (breaking) patch for relevant test



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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