If I have an index PEOPLE with personid, name, birthday, relation where the relation is a list that contains the personid of the linked person.
How can I use a _msearch to search for a person and get only the documents of the linked person(s)
You can not. Queries submitted through an _msearch request are processed in parallel without interaction or dependencies between them.
What you are looking for is a join which Elasticsearch does not support. You therefore need to use multiple sequential requests.
1 Like
Thanks, you just save me a lot of time.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.