[
https://issues.apache.org/jira/browse/SOLR-12094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16401005#comment-16401005
]
Przemysław Szeremiota commented on SOLR-12094:
----------------------------------------------
Thank you Dawid for fixing my poor issue formatting.
Yes, it is a bug: visibility of root fields in output depends on their order
within input document, so functionally indifferent JSON with "exams" as a first
field would have all root-level fields skipped from resulting document.
> 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:
> {code}
> {
> "first": "John",
> "last": "Doe",
> "grade": 8,
> "exams": [
> {
> "subject": "Maths",
> "test": "term1",
> "marks": 90
> },
> {
> "subject": "Biology",
> "test": "term1",
> "marks": 86
> }
> ],
> "after": "456"
> }
> {code}
> 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: [email protected]
For additional commands, e-mail: [email protected]