Commit 19bc738
committed
Avoid deprecated from and to parameters for range queries.
The “from” and “to” parameters for range queries were deprecated in
Elasticsearch 0.90.4, and more than ten years later, they were finally
removed in Elasticsearch 9.x.
Therefore, the existing code did not work any longer when using modern
versions of Elasticsearch. As a side effect, using the “gte” and “lte”
parameters simplifiese the code, because we can now simply tell
Elasticsearch that the values represent seconds since epoch instead of
having to convert to milliseconds in the code.
Fixes #3632.1 parent 365709a commit 19bc738
File tree
2 files changed
+8
-4
lines changed- services
- alarm-logger/src/main/java/org/phoebus/alarm/logging/rest
- save-and-restore/src/main/java/org/phoebus/service/saveandrestore/search
2 files changed
+8
-4
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
240 | | - | |
241 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
243 | | - | |
244 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
| |||
0 commit comments