Skip to content

Commit ac9c24b

Browse files
authored
Allow to define limits of nested and total number of fields per data stream (#641)
1 parent 708b8a7 commit ac9c24b

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

spec/changelog.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
- description: Using non-GA versions of the spec in GA packages produces a filterable validation error instead of a warning.
88
type: enhancement
99
link: https://github.com/elastic/package-spec/pull/627
10+
- description: Allow to define limits of nested and total number of fields.
11+
type: enhancement
12+
link: https://github.com/elastic/package-spec/pull/641
1013
- version: 3.0.0-rc1
1114
changes:
1215
- description: Validate processors used in ingest pipelines

spec/integration/data_stream/manifest.spec.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ spec:
194194
mapping:
195195
type: object
196196
additionalProperties: false
197-
properties:
198-
dimension_fields:
197+
patternProperties:
198+
"^(dimension|nested|total)_fields$":
199199
type: object
200200
additionalProperties: false
201201
properties:
202202
limit:
203-
description: Limit on the number of dimension fields on this data stream.
203+
description: Limit on the number of fields of this kind on this data stream.
204204
type: integer
205205
sort:
206206
type: object

test/packages/good_v3/data_stream/foo/manifest.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ streams:
4646
dataset_is_prefix: true
4747
elasticsearch:
4848
index_template:
49+
settings:
50+
index:
51+
mapping:
52+
nested_fields:
53+
limit: 80
54+
total_fields:
55+
limit: 5000
56+
dimension_fields:
57+
limit: 32
4958
mappings:
5059
dynamic: strict
5160
ingest_pipeline:

0 commit comments

Comments
 (0)