Expand description
Performing full SQL-style joins in a distributed system like Elasticsearch is prohibitively expensive. Instead, Elasticsearch offers two forms of join which are designed to scale horizontally.
https://www.elastic.co/guide/en/elasticsearch/reference/current/joining-queries.html
Structsยง
- HasChild
Query - Returns parent documents whose joined child documents match a provided query. You can create parent-child relationships between documents in the same index using a join field mapping.
- HasParent
Query - Returns child documents joined to a specific parent document. You can use a join field mapping to create parent-child relationships between documents in the same index.
- Nested
Query - Wraps another query to search nested fields.
- Parent
IdQuery - Returns child documents joined to a specific parent document. You can use a join field mapping to create parent-child relationships between documents in the same index.