Commit f1f3b28
Delete deprecated getValues from ScriptDocValues (#36183)
* Adds deprecation logging to ScriptDocValues#getValues.
First commit addressing issue #22919.
`ScriptDocValues#getValues` was added for backwards compatibility but no
longer needed. Scripts using the syntax `doc['foo'].values` when
`doc['foo']` is a list should be using `doc['foo']` instead.
* Fixes two build errors in #34279
* Removes unused import in ScriptDocValuesDatesTest
* Removes used of `.values` in example in diversified-sampler-aggregation.asciidoc
* Removes use of .values from painless test.
Part of #34279
* Updates tests to use `doc[foo]` syntax rather than `doc[foo].values`.
* Removes use of `getValues()` and replaces use of `doc[foo].values` with `doc[foo]`.
* Indentation fix.
* Remove unnecessary list construction at previous `getValues()` callsite in ScriptDocValues.GeoPoints.
* Update migration doc and add link to `getValue` in ScriptDocValues javadoc.
* Fix compile
* Fix javadoc issue
* Removes ScriptDocValues#getValues usage from painless whitelist.1 parent db8f07c commit f1f3b28
File tree
14 files changed
+32
-298
lines changed- docs/reference/migration/migrate_7_0
- modules/lang-painless/src/main/resources/org/elasticsearch/painless/spi
- server/src
- main/java/org/elasticsearch/index/fielddata
- test/java/org/elasticsearch
- index/fielddata
- search
- aggregations
- bucket
- metrics
- fields
- functionscore
- sort
14 files changed
+32
-298
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
Lines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | | - | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
| |||
163 | 161 | | |
164 | 162 | | |
165 | 163 | | |
166 | | - | |
167 | 164 | | |
168 | 165 | | |
169 | 166 | | |
170 | 167 | | |
171 | 168 | | |
172 | | - | |
173 | 169 | | |
174 | 170 | | |
175 | 171 | | |
176 | 172 | | |
177 | 173 | | |
178 | | - | |
179 | 174 | | |
180 | 175 | | |
181 | 176 | | |
| |||
193 | 188 | | |
194 | 189 | | |
195 | 190 | | |
196 | | - | |
197 | 191 | | |
198 | 192 | | |
199 | 193 | | |
200 | 194 | | |
201 | 195 | | |
202 | | - | |
203 | 196 | | |
204 | 197 | | |
205 | 198 | | |
| |||
213 | 206 | | |
214 | 207 | | |
215 | 208 | | |
216 | | - | |
217 | 209 | | |
218 | 210 | | |
219 | 211 | | |
| |||
268 | 260 | | |
269 | 261 | | |
270 | 262 | | |
271 | | - | |
| 263 | + | |
Lines changed: 7 additions & 83 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
35 | | - | |
36 | 32 | | |
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
40 | 36 | | |
41 | | - | |
42 | | - | |
43 | 37 | | |
44 | 38 | | |
45 | 39 | | |
46 | 40 | | |
47 | | - | |
48 | | - | |
| 41 | + | |
49 | 42 | | |
50 | 43 | | |
51 | 44 | | |
52 | 45 | | |
53 | 46 | | |
54 | 47 | | |
55 | 48 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 49 | | |
76 | 50 | | |
77 | 51 | | |
78 | 52 | | |
79 | 53 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 54 | | |
90 | 55 | | |
91 | 56 | | |
| |||
112 | 77 | | |
113 | 78 | | |
114 | 79 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 80 | | |
131 | 81 | | |
132 | 82 | | |
| |||
139 | 89 | | |
140 | 90 | | |
141 | 91 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 92 | | |
151 | 93 | | |
152 | 94 | | |
| |||
204 | 146 | | |
205 | 147 | | |
206 | 148 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | 149 | | |
216 | 150 | | |
217 | 151 | | |
| |||
330 | 264 | | |
331 | 265 | | |
332 | 266 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | 267 | | |
342 | 268 | | |
343 | 269 | | |
| |||
379 | 305 | | |
380 | 306 | | |
381 | 307 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
386 | 311 | | |
387 | 312 | | |
388 | 313 | | |
389 | 314 | | |
390 | 315 | | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
395 | 319 | | |
396 | 320 | | |
397 | 321 | | |
| |||
Lines changed: 0 additions & 93 deletions
This file was deleted.
0 commit comments