Great proposal!

I especially like the dedicated /update/delete endpoint, irrespective of
the JSON matter.  I routinelly see deletes processed separately by indexing
chains, so I'd appreciate the observability benefit of using a separate
handler.  Naturally, it should be restricted to only handle deletes.

I also really like the proposal of making atomic update commands clear by
the key name.  I'm ambivalent about whether you use the "$" prefix or adopt
the underscore on both sides.  I'm inclined to prefer the latter somewhat
if I had to pick.

Sequencing:  do the additions first, then deprecations :-).

Hmm, an idea occurred to me -- maybe DeprecationLog could look up the
current request via SolrRequestInfo and add a warning header (if the
response structure has it).

Ideally, SolrJ has an easy API to set the update path.  Last I checked, it
was awkward.

I'm looking forward to a *separate* thread for SIP-29; it's something I've
had on my mind lately and for a long time.

On Fri, Dec 4, 2026 at 6:25 AM 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