dsmiley commented on code in PR #5391:
URL: https://github.com/apache/solr/pull/5391#discussion_r4712265737
##########
solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-10.adoc:
##########
@@ -91,6 +91,13 @@ A request with no other parameters returns every collection.
The v1 `CLUSTERSTATUS` command is unchanged, and `includeAll` still defaults
to true.
+=== Delete-by-Query Deletes Nested Descendants
+
+When the schema has the `\_nest_path_` field, a delete-by-query now also
deletes all nested descendants of the documents it matches, at any depth.
+Previously, a query matching a parent but not all of its descendants left
orphaned child documents behind, violating Solr's integrity assumptions for
nested documents.
+To opt out, add the `withDescendants=false` local param to the query, e.g.,
`{!lucene withDescendants=false}category:obsolete`.
Review Comment:
Quoting the 2nd sentence of the solution:
>Because only the query string is logged and forwarded, expanding it there
applies consistently on every replica, to reordered DBQs, and on tlog replay.
Putting request parameters on a `/update` is really problematic as it's not
captured in the update log and thus wouldn't be replayed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]