Commit de2824b
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 21a3442 commit de2824b
File tree
2 files changed
+15
-1
lines changed- x-pack/plugin/downsample/src
- internalClusterTest/java/org/elasticsearch/xpack/downsample
- main/java/org/elasticsearch/xpack/downsample
2 files changed
+15
-1
lines changedLines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
95 | 109 | | |
96 | 110 | | |
97 | 111 | | |
| |||
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