Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12094

JsonRecordReader ignores root record fields after the split point

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.0
    • Fix Version/s: None
    • Component/s: SolrJ
    • Labels:
      None

      Description

      JsonRecordReader, when configured with other than top-level split, ignores all top-level JSON nodes after the 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.

        Attachments

        1. SOLR-12094.patch
          9 kB
          Dawid Weiss
        2. SOLR-12094.patch
          7 kB
          Andrzej Wislowski
        3. json-record-reader-bug.patch
          3 kB
          Przemysław Szeremiota

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              przemosz Przemysław Szeremiota
            • Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: