Skip to content

Commit 3cf40d3

Browse files
committed
Add yaml test
1 parent 8f5f178 commit 3cf40d3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/mapping/30_multi_field_keyword.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Keyword with escaped characters as multi-field:
33
- requires:
44
cluster_features: [ "mapper.multi_field.unicode_optimisation_fix" ]
5-
reason: "requires a fix (#134770)"
5+
reason: "Captures the scenarios in #134770 & 135256"
66
- do:
77
indices.create:
88
index: test
@@ -14,14 +14,20 @@ Keyword with escaped characters as multi-field:
1414
fields:
1515
bar:
1616
type: keyword
17+
bar-text:
18+
type: text
19+
my-ip:
20+
type: ip
1721

22+
# Ensure the IP is correctly parsed after a multi-field mapping that combines optimised and non-optimised fields
1823
- do:
1924
index:
2025
index: test
2126
id: "1"
2227
refresh: true
2328
body:
2429
foo: "c:\\windows\\system32\\svchost.exe"
30+
my-ip: "127.0.0.1"
2531

2632
- do:
2733
search:

0 commit comments

Comments
 (0)