Commit ef11738
authored
In #138869 we fixed the handling of the multi-fields; however, we
introduced a bug when a mapping contains a alias type.
For example, the following mapping:
```
"@timestamp": {
"type": "date"
},
"timestamp": {
"type": "alias",
"path": "@timestamp"
}
```
The cause of the bug was that in the `FieldValueFetcher` we switch the
check wether a field is indexed from the name we retrieved in the label
to the name of the field type. In this case, the label is `timestamp`
which does not in the indexed but the name of the field type is
"@timestamp".
(cherry picked from commit 47698be)
# Conflicts:
# x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample/DownsampleIT.java
1 parent 054cd2f commit ef11738
File tree
2 files changed
+8
-1
lines changed- x-pack/plugin/downsample/src
- internalClusterTest/java/org/elasticsearch/xpack/downsample
- main/java/org/elasticsearch/xpack/downsample
2 files changed
+8
-1
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments