I like the proposed improvements and would like to add a few notes that I
am against, mainly because I find them confusing (specifically the delete
part).

I'd like to start with a clarification question: does "standard JSON" mean
"no repeated keys" in your SIP? If so, I guess the reason why we allowed
duplicate keys is to allow an ordered list of operations to be executed in
sequence, right? Is this still possible with the proposed changes? Or am I
just being confused by my lack of knowledge here?

What I am not sure about is the delete example {"ids": ["1", "2"], "query":
"cat:old"}. I am not sure if these are two different delete operations
(delete document with IDs 1 and 2, and delete document that matches query
"cat:old") or one that applies to document with ID 1 and 2 where query
matches "cat:old". Perhaps this would also confuse other people.

Last but not least, I'd like to throw as an alternative that is not listed
yet the RESTful API endpoints with a full deprecation of the current
endpoint /update. What I want to know here is, why is it important to
migrate the existing endpoint, if the resource-oriented new v2 API
endpoints are supposed to replace the v1 endpoints? And why not follow the
fully RESTful API endpoint definitions here?

Thanks for your time and effort put into the endpoints, it is very
important to get things sorted out and fixed / improved.

Best,
Christos

On Fri, Dec 4, 2026 at 1:26 PM Jan Høydahl via dev <[email protected]>
wrote:

> Hi,
>
> I'd like to start a discussion on SIP-28: Modernize the JSON update API
>
> https://cwiki.apache.org/confluence/spaces/SOLR/pages/467437339/SIP-28+Modernize+the+JSON+update+API
>
> Problem: JSON on /update uses a command syntax with repeated keys that many
> JSON libraries cannot produce, and the parser has to guess whether a nested
> object is an atomic update or a child document. The related JIRAs go back
> many years (listed in the SIP appendix).
>
> Proposal, in short:
> - application/json on /update means documents, nothing else
> - Atomic updates use explicit operators: {"id":"1","price":{"$set":10}}
> - Deletes get their own endpoint, POST /update/delete, with a plain JSON
> body
> - The command syntax moves behind its own content type and is removed in
> 12.0
> - 10.2 is additive (new syntax + deprecations). No behaviour change before
> 11.0
>
> The SIP lists some "Open Questions" that I believe are good discussion
> topics, apart
> from whether we should go in this direction at all.
>
> Umbrella JIRA: https://issues.apache.org/jira/browse/SOLR-18724
> Nested documents are handled separately in SIP-29 (own thread).
>
> Please discuss in this thread. Very technical discussions related to an
> existing JIRA can go in that JIRA.
>
> 🤖 I directed Claude Fable to craft both SIPs, umbrella JIRAs and this
> email :) 🤖
>
> Jan
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to