David Smiley created SOLR-18199:
-----------------------------------
Summary: Make deleteByQuery (DBQ) easy & safe with child / nested
docs
Key: SOLR-18199
URL: https://issues.apache.org/jira/browse/SOLR-18199
Project: Solr
Issue Type: Improvement
Reporter: David Smiley
deleteByQuery is problematic with nested docs. One must understand that the
query must be constructed to not only match the direct/intended docs, but all
their children as well – otherwise you will corrupt nested doc integrity in
Solr.
I propose that nested docs be detected in the schema and then DBQs be converted
mechanically guarantee that it matches all child docs of the docs it would
otherwise match. Perhaps this can support child docs generally, not just
nested. For users that know what they are doing, a local-param could opt-out
of the proposed processing. For example if all child docs are guaranteed to
have a consistent value that is the basis of the deletion criteria (perhaps a
category/label or a date or really anything), then the proposed query
conversion would produce a query that is needlessly slower.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]