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]