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

cURL-like multiple JSON update ignore nested data structure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.2.1
    • None
    • Data-driven Schema

    Description

      I'm trying to upload the following documents to my collection
      [
      {
      "id": "1",
      "title": "Let's try Solr1",
      "name" :

      { "first": "Sergio", "last": "Schena" }

      },
      {
      "id": "2",
      "title": "Let's try Solr 2",
      "name" :

      { "first": "Sergio", "last": "Schena" }

      }
      ]
      using the /solr/collection_name/update API. The data are successfully uploaded but the field name.first and name.last are not stored and I cannot retrieve them when I search (over all my collection).

      I checked the extracted schema and the missing fields are present!

      In addition, if I upload only one document using the upload/json/docs the fields are stored in the collection.

      I think that I discovered a little bug in the multiple upload with nested data types.

      I didn't try with a schema definition and with the XML data format instead with the JSON one.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sergioschena Sergio Schena
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: