Skip to content

Commit c64bfb9

Browse files
committed
fixing example
1 parent 47a8bf6 commit c64bfb9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/reference/query-languages/esql/esql-lookup-join.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ The `LOOKUP JOIN` command adds new columns to a table, with data from {{es}} ind
3030
:alt: esql lookup join
3131
:::
3232

33+
$$$esql-source-index$$$
34+
35+
Source index
36+
: An index which stores enrich data that the `LOOKUP` command can add to input tables. You can create and manage these indices just like a regular {{es}} index. You can use multiple source indices in an enrich policy. You also can use the same source index in multiple enrich policies.
37+
38+
## Example
39+
3340
In the case where there are multiple matches on the index `LOOKUP JOIN` the output rows is the combination of each match from the left with each match on the right.
3441

3542
Image you have the two tables:
@@ -76,12 +83,6 @@ FROM Left
7683

7784
::::
7885

79-
$$$esql-source-index$$$
80-
81-
Source index
82-
: An index which stores enrich data that the `LOOKUP` command can add to input tables. You can create and manage these indices just like a regular {{es}} index. You can use multiple source indices in an enrich policy. You also can use the same source index in multiple enrich policies.
83-
84-
8586
## Prerequisites [esql-enrich-prereqs]
8687

8788
To use `LOOKUP JOIN`, you must have:
@@ -90,7 +91,7 @@ To use `LOOKUP JOIN`, you must have:
9091

9192
## Limitations
9293

93-
The following is a list of current limitations with `LOOKUP JOIN`
94+
The following are the current limitations with `LOOKUP JOIN`
9495

9596
* `LOOKUP JOIN` will be sucessfull if both left and right type of the join are both `KEYWORD` types or if the left type is of `TEXT` and the right type is `KEYWORD`.
9697
* Indices in [lookup](/reference/elasticsearch/index-settings/index-modules.md#index-mode-setting) mode are always single-sharded.
@@ -100,5 +101,4 @@ The following is a list of current limitations with `LOOKUP JOIN`
100101
* The query will circuit break if you fetch too much data in a single page. A large heap is needed to manage results of multiple megabytes.
101102
* This limit is per page of data which is about about 10,000 rows.
102103
* Matching many rows per incoming row will count against this limit.
103-
* This limit is approximately the same as for [`ENRICH`](/reference/query-languages/esql/esql-commands.md#esql-enrich).
104-
104+
* This limit is approximately the same as for [`ENRICH`](/reference/query-languages/esql/esql-commands.md#esql-enrich).

0 commit comments

Comments
 (0)