简体   繁体   中英

Elasticsearch - select document based on value in another document

I have a parent document (ex: "Parent") which has two types of child documents: "Child 1" and "Child 2". I want to select child 2 documents which satisfy condition based on a value of field in child 1. Is it possible in ElasticSearch? If not, how can I approach this?

I am using ElasticSearch 5.5

You can use siren join plugin which filters documents of one source based on another source based on a common field.

Here is the link to it https://github.com/sirensolutions/siren-join

As mentioned in this link that this has been moved in vanguard for your version

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM