I have to count the number of processinstances of a process that are failed, i want this data from elastic search.
What is the structure of documents that are stored in Elastic search (any documentation on structure of data stored by zeebe on elastic search.)