Hi, I am new to elasticsearch. I was trying to create a parent-child mapping where the children would be frequently added and removed. Every Parent should have at least one child.
What I want to do is, if a child is deleted, I want to check if the parent has other children documents, and if not, delete that parent document. How do I do this? I was trying a delete by query, but I am not sure which query I should send. Thanks for the help! :) -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/282aca7b-4b38-41ab-91c5-42094083d8d9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
