**同步结果摘要**: | 目录 | 同步前 | 同步后 | 官方 | |------|--------|--------|------| | aggregations | 40 | 65 | 64 | | analyzers | 8 | 141 | 140 | | api-reference | 97 | 186 | 174 | | benchmark | 34 | 67 | 53 | | clients | 17 | 18 | 18 | | dashboards | 38 | 149 | 131 | | data-prepper | 77 | 134 | 123 | | im-plugin | 22 | 37 | 37 | | ingest-pipelines | 27 | 52 | 51 | | install-and-configure | 37 | 57 | 53 | | ml-commons-plugin | 81 | 157 | 155 | | observing-your-data | 39 | 73 | 66 | | query-dsl | 40 | 77 | 75 | | search-plugins | 80 | 139 | 95 | | security-analytics | 22 | 47 | 46 | **说明**: - 本地文件数 > 官方:本地有一些官方已删除或重命名的文件 - 新增了约 **740 个英文文档文件** - 已有文件保持不变(未覆盖)
1.7 KiB
1.7 KiB
layout, title, has_children, nav_order, has_toc, redirect_from
| layout | title | has_children | nav_order | has_toc | redirect_from | |
|---|---|---|---|---|---|---|
| default | Joining queries | true | 70 | false |
|
Joining queries
OpenSearch is a distributed system in which data is spread across multiple nodes. Thus, running a SQL-like JOIN operation in OpenSearch is resource intensive. As an alternative, OpenSearch provides the following queries that perform join operations and are optimized for scaling across multiple nodes:
| Query type | Description |
|---|---|
nested |
Acts as a wrapper for other queries to search nested fields. The nested field objects are searched as though they were indexed as separate documents. |
has_child |
Searches for parent documents whose child documents match the query. Requires a join field type. |
has_parent |
Searches for child documents whose parent documents match the query. Requires a join field type. |
parent_id |
Searches for child documents that are joined to a specific parent document. Requires a join field type. |
If search.allow_expensive_queries is set to false, then joining queries are not executed.
{: .important}