From 7f3c642c0a3717a0f71275051fd35a48f88a1e0a Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Tue, 10 Dec 2024 12:28:13 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=8A=20Streams:=20Set=20subobjects:=20f?= =?UTF-8?q?alse=20(#203002)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With https://github.com/elastic/elasticsearch/issues/117544 fixed, `subobjects: false` can be set on wired streams. This allows to map fields as scalars even if they share the same prefix, e.g. * `deeply.nested.path` as `keyword` * `deeply.nested.path.and.more` as `keyword` --- .../server/lib/streams/component_templates/generate_layer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/streams/server/lib/streams/component_templates/generate_layer.ts b/x-pack/plugins/streams/server/lib/streams/component_templates/generate_layer.ts index 69da4c5d8287d..a99b9be261911 100644 --- a/x-pack/plugins/streams/server/lib/streams/component_templates/generate_layer.ts +++ b/x-pack/plugins/streams/server/lib/streams/component_templates/generate_layer.ts @@ -36,7 +36,7 @@ export function generateLayer( template: { settings: isRoot(definition.id) ? logsSettings : {}, mappings: { - subobjects: true, // TODO set to false once this works on Elasticsearch side - right now fields are not properly indexed. + subobjects: false, dynamic: false, properties, },