On 7/29/26 07:53, [email protected] wrote:
Dear Solr Team

What happens when you send a partial document update like the following?


{
  "id":"mydoc",
  "price":{"set":99}
}

but no document with the id "mydoc" exists at this moment.

Or what happens if the partial document update is missing the id field?

Or what happens if you send a mixed request, containing fields with modifiers 
and fields containing only the value?


What you would normally do for #1 is covered under "optimistic concurrency" and you will post

}
 "id":"mydoc",
 "_version_": number,
 "price":{"set":99}
}

#2 should not work, assuming id is the unique key. And I don't think partial updates work with any field other than the unique key.

Dima

Reply via email to