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

JsonRecordReader ignores root record fields after the split point

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.0
    • None
    • SolrJ
    • 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

            Unassigned Unassigned
            przemosz Przemysław Szeremiota
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: