From 91ee944df9883032cebba8301040b0209dc6d08f Mon Sep 17 00:00:00 2001 From: Dimitrios Liappis Date: Wed, 22 Aug 2018 14:42:15 +0300 Subject: [PATCH 1/2] Clarify ignore_above behavior with arrays of strings and also note that all string(s) will still be visible in the `_source` field. --- docs/reference/mapping/params/ignore-above.asciidoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/reference/mapping/params/ignore-above.asciidoc b/docs/reference/mapping/params/ignore-above.asciidoc index 95704c6c8bbe3..dbe225517655d 100644 --- a/docs/reference/mapping/params/ignore-above.asciidoc +++ b/docs/reference/mapping/params/ignore-above.asciidoc @@ -2,6 +2,9 @@ === `ignore_above` Strings longer than the `ignore_above` setting will not be indexed or stored. +For arrays of strings, `ignore_above` will be applied for each array element and string elements longer than `ignore_above` will not be indexed or stored. + +NOTE: All strings/array elements will still be present in the `_source` field, if the latter is enabled which is the default in Elasticsearch. [source,js] -------------------------------------------------- From eac5614eef0c4b527a94ad19f93103134848da0d Mon Sep 17 00:00:00 2001 From: Dimitrios Liappis Date: Wed, 22 Aug 2018 14:54:57 +0300 Subject: [PATCH 2/2] Addressing PR comment --- docs/reference/mapping/params/ignore-above.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/mapping/params/ignore-above.asciidoc b/docs/reference/mapping/params/ignore-above.asciidoc index dbe225517655d..fe7c6881a064f 100644 --- a/docs/reference/mapping/params/ignore-above.asciidoc +++ b/docs/reference/mapping/params/ignore-above.asciidoc @@ -2,7 +2,7 @@ === `ignore_above` Strings longer than the `ignore_above` setting will not be indexed or stored. -For arrays of strings, `ignore_above` will be applied for each array element and string elements longer than `ignore_above` will not be indexed or stored. +For arrays of strings, `ignore_above` will be applied for each array element separately and string elements longer than `ignore_above` will not be indexed or stored. NOTE: All strings/array elements will still be present in the `_source` field, if the latter is enabled which is the default in Elasticsearch.