|
@@ -57,11 +57,11 @@ in this example). `ENRICH` will look for records in the
|
|
|
|
|
|
[source.merge.styled,esql]
|
|
|
----
|
|
|
-include::{esql-specs}/docs-IT_tests_only.csv-spec[tag=enrich]
|
|
|
+include::{esql-specs}/enrich.csv-spec[tag=enrich]
|
|
|
----
|
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|
|===
|
|
|
-include::{esql-specs}/docs-IT_tests_only.csv-spec[tag=enrich-result]
|
|
|
+include::{esql-specs}/enrich.csv-spec[tag=enrich-result]
|
|
|
|===
|
|
|
|
|
|
To use a column with a different name than the `match_field` defined in the
|
|
@@ -69,11 +69,11 @@ policy as the match field, use `ON <column-name>`:
|
|
|
|
|
|
[source.merge.styled,esql]
|
|
|
----
|
|
|
-include::{esql-specs}/docs-IT_tests_only.csv-spec[tag=enrich_on]
|
|
|
+include::{esql-specs}/enrich.csv-spec[tag=enrich_on]
|
|
|
----
|
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|
|===
|
|
|
-include::{esql-specs}/docs-IT_tests_only.csv-spec[tag=enrich_on-result]
|
|
|
+include::{esql-specs}/enrich.csv-spec[tag=enrich_on-result]
|
|
|
|===
|
|
|
|
|
|
By default, each of the enrich fields defined in the policy is added as a
|
|
@@ -82,22 +82,22 @@ column. To explicitly select the enrich fields that are added, use
|
|
|
|
|
|
[source.merge.styled,esql]
|
|
|
----
|
|
|
-include::{esql-specs}/docs-IT_tests_only.csv-spec[tag=enrich_with]
|
|
|
+include::{esql-specs}/enrich.csv-spec[tag=enrich_with]
|
|
|
----
|
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|
|===
|
|
|
-include::{esql-specs}/docs-IT_tests_only.csv-spec[tag=enrich_with-result]
|
|
|
+include::{esql-specs}/enrich.csv-spec[tag=enrich_with-result]
|
|
|
|===
|
|
|
|
|
|
You can rename the columns that are added using `WITH new_name=<field1>`:
|
|
|
|
|
|
[source.merge.styled,esql]
|
|
|
----
|
|
|
-include::{esql-specs}/docs-IT_tests_only.csv-spec[tag=enrich_rename]
|
|
|
+include::{esql-specs}/enrich.csv-spec[tag=enrich_rename]
|
|
|
----
|
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|
|===
|
|
|
-include::{esql-specs}/docs-IT_tests_only.csv-spec[tag=enrich_rename-result]
|
|
|
+include::{esql-specs}/enrich.csv-spec[tag=enrich_rename-result]
|
|
|
|===
|
|
|
|
|
|
In case of name collisions, the newly created columns will override existing
|