ElasticSearch mapping the result of collapse / do operations on a grouped documents
问题 There is a list of conversations and every conversation has a list of messages. Every message has different fields and an action field. We need to consider that in the first messages of the conversation there is used the action A , after a few messages there is used action A.1 and after a while A.1.1 and so on (there is a list of chatbot intents). Grouping the messages actions of a conversation will be something like: A > A > A > A.1 > A > A.1 > A.1.1 ... Problem: I need to create a report