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

Atomic updates delete content field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 4.10
    • None
    • Build
    • None
    • Localhost under Jetty version 9.2.1.v20140609

    Description

      Let's say we have an indexed document provided by Tika contrib package:

      {
        "id": "some_id",
        "content_type": [
          "text/html; charset=utf-8"
        ],
        "language": "en",
      
        "title": [
          "some title"
        ],
        "content": [
          "some content"
        ],
      
        "_version_": some_version
      }
      

      Now, I want to add a field with an atomic update using curl from terminal

      curl -s 'http://solr_ip:8080/solr/update' -H 'Content-type:application/json' -d '[{"id":"some_id","1986_i":{"set":2}}]'
      

      The result document is:

      {
        "id": "some_id",
        "content_type": [
          "text/html; charset=utf-8"
        ],
        "language": "en",
      
        "title": [
          "some title"
        ],
        "1986_i": 2,
        "_version_": other_version
      }
      

      The content field is missing.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bbotella Bernardo Botella
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: