-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmapping.yml
38 lines (36 loc) · 926 Bytes
/
mapping.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
requires:
serverless: true
stack: true
---
setup:
- do:
indices.create:
index: test_mapping_index
---
teardown:
- do:
indices.delete:
index: test_mapping_index
---
'indices.mapping':
- do:
indices.put_mapping:
index: test_mapping_index
body:
properties:
text1:
type: text
analyzer: whitespace
text2:
type: text
analyzer: whitespace
subfield.text3:
type: text
- do:
indices.get_mapping:
index: test_mapping_index
- match: {test_mapping_index.mappings.properties.text1.type: text}
- match: {test_mapping_index.mappings.properties.text1.analyzer: whitespace}
- match: {test_mapping_index.mappings.properties.text2.type: text}
- match: {test_mapping_index.mappings.properties.text2.analyzer: whitespace}