Skip to content

Commit

Permalink
🌊 Streams: Set subobjects: false (elastic#203002)
Browse files Browse the repository at this point in the history
With elastic/elasticsearch#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`
  • Loading branch information
flash1293 authored Dec 10, 2024
1 parent 91fec7a commit 7f3c642
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 7f3c642

Please sign in to comment.