Create multiple document depending on conditions

Hi there !

I am quite new with Elastic.
I would like to know if there is a functionnality allowing to create multiple index depending on a condition ? (like an update_by_query can do)

My problem is the following one :

  • I have an entity Parent (with his own index and some documents)
  • I have an entity Child (with his own index and some documents)

The problem is: information about Parent are in my document Child (with UUID=123456)

So if I update a document of Parent, I have to do all these action in Child :

  • Update all documents of Child which are related to Parent UUID 123456 and set their EndDate to Today()
  • Create all these updated document, with a startdate to Today, and apply my modifications

I would like to know if this is possible or not.
We manage snapshot by ourselves actually.

Thanks a lot for your help ! :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.