Commit af9acfb
authored
Disable _parent field on new indices (#34259)
Today it is still possible to set a `_parent` field on an index created in 6x. This is accepted because the `_parent` field can refer to an non-existing type when it is created. However these indices cannot have more than one type so it doesn't make sense to create this field if it's not
possible to create the parent type afterward. For this reason this change forbids
`_parent` fields on indices created in 6.5. It also moves the yaml tests that
use a parent field into the LegacyParentFieldMapperTests class where we can
force the index version.
Closes #337521 parent 9e3e7e1 commit af9acfb
File tree
29 files changed
+165
-848
lines changed- modules/parent-join/src/test/java/org/elasticsearch/join/query
- rest-api-spec/src/main/resources/rest-api-spec/test
- create
- delete
- exists
- get_source
- get
- index
- mget
- update
- server/src
- main/java/org/elasticsearch/index/mapper
- test/java/org/elasticsearch
- cluster/metadata
- index/mapper
- mget
- search
- aggregations/bucket
- fetch/subphase
29 files changed
+165
-848
lines changedLines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | 90 | | |
98 | 91 | | |
99 | 92 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
| |||
Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 0 additions & 57 deletions
This file was deleted.
Lines changed: 0 additions & 42 deletions
This file was deleted.
0 commit comments