OpenSearch/docs/reference/ingest/apis
Martijn van Groningen 7fc9198d46
Change how `max_matches` affects `target_field` option. (#47982)
Prior to this change the `target_field` would always be a json array
field in the document being ingested. This to take into account that
multiple enrich documents could be inserted into the `target_field`.

However the default `max_matches` is `1`. Meaning that by default
only a single enrich document would be added to `target_field` json
array field.

This commit changes this; if `max_matches` is set to `1` then the single
document would be added as a json object to the `target_field` and
if it is configured to a higher value then the enrich documents will be
added as a json array (even if a single enrich document happens to be
enriched).
2019-10-14 21:09:48 +02:00
..
enrich Change how `max_matches` affects `target_field` option. (#47982) 2019-10-14 21:09:48 +02:00
delete-pipeline.asciidoc [DOCS] Reformat delete pipeline API (#47172) (#47294) 2019-09-30 11:38:46 -04:00
get-pipeline.asciidoc [DOCS] Reformat get pipeline API (#47131) (#47163) 2019-09-26 08:51:12 -04:00
index.asciidoc [DOCS] Relocate Ingest API docs to REST API section (#45812) 2019-08-23 11:55:01 -04:00
put-pipeline.asciidoc [DOCS] Reformat put pipeline API (#47171) (#47395) 2019-10-01 14:48:18 -04:00
simulate-pipeline.asciidoc [DOCS] Reformat simulate pipeline API (#47301) (#47398) 2019-10-01 14:49:14 -04:00