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

Atomic update remove does not work for int array or date array

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Try to remove an element in the string array with curl:

      curl http://localhost:8080/update\?commit\=true -H 'Content-type:application/json' -d '[{ "attr_birth_year_is": { "remove": [1960]},  "id": 1098}]'
      
      curl http://localhost:8080/update\?commit\=true -H 'Content-type:application/json' -d '[{"reserved_on_dates_dts": {"remove": ["2014-02-12T12:00:00Z", "2014-07-16T12:00:00Z", "2014-02-15T12:00:00Z", "2014-02-21T12:00:00Z"]}, "id": 1098}]'
      

      Neither of them works.

      The set and add operation for int array works.
      The set, remove, and add operation for string array works

      Attachments

        1. SOLR-6307.patch
          1 kB
          Anurag Sharma
        2. SOLR-6307.patch
          35 kB
          Noble Paul
        3. SOLR-6307.patch
          35 kB
          Anurag Sharma
        4. SOLR-6307.patch
          37 kB
          Anurag Sharma
        5. unitTests-6307.txt
          86 kB
          Anurag Sharma

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            noble.paul Noble Paul
            kunxi Kun Xi
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment