Hi,

Last section of
https://lucene.apache.org/solr/guide/8_0/indexing-nested-documents.html is
a little bit confusing:

To delete a nested document, you can delete it by the ID of the root
document. If you try to use an ID of a child document, nothing will happen
since only root document IDs are considered. If you use Solr’s
delete-by-query APIs, you *have to be careful* to ensure that no children
remain of any documents that are being deleted. *Doing otherwise will
violate integrity assumptions that Solr expects.*

So does this mean if we fire a delete-query matching only parent documents,
then that query will automatically delete the child documents?
1) If no, then why do we have to be careful to ensure no children remain of
any any documents that are being deleted?
2) If yes, then this statement does not make sense: "If you try to use an
ID of a child document, nothing will happen since only root document IDs
are considered"

What is missing ?

Thanks
SG

Reply via email to