Paul Faure
4b7349037f
feat(kql): support numeric range queries (>=, <=, >, <)
...
Add NumericRestrictionNode to the KQL PEG grammar so that range
operators work with numeric values, not just DateTimes. This enables
queries like `size>=1048576`, `photo.iso>=100`, `photo.fNumber>=2.8`,
and `photo.focalLength<50`.
Changes:
- ast: add NumericNode with Key, Operator, Value (float64)
- kql/dictionary.peg: add NumericRestrictionNode and Number rules
- kql/factory.go: add buildNumericNode()
- kql/cast.go: add toFloat64()
- bleve/compiler.go: compile NumericNode to NumericRangeQuery
Fixes : #12093
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-07 23:51:08 -05:00
..
2023-12-05 23:27:26 +01:00
2021-01-28 00:32:47 +00:00
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2021-05-12 16:29:58 +02:00
2023-04-21 15:40:53 +05:45
2021-06-28 09:15:41 +02:00
2021-07-13 09:07:34 +02:00
2023-04-21 15:40:53 +05:45
2021-08-25 15:28:02 +02:00
2021-09-20 16:54:29 +05:45
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2021-12-10 10:20:10 +01:00
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2022-03-29 17:58:43 +02:00
2023-04-21 15:40:53 +05:45
2023-12-05 23:27:26 +01:00
2024-04-11 11:27:47 +02:00
2023-08-23 15:15:44 +02:00
2023-12-08 14:29:09 +01:00
2023-12-08 14:29:09 +01:00
2023-12-08 14:29:09 +01:00
2023-12-08 14:29:09 +01:00
2024-02-14 15:46:30 +01:00
2024-02-14 14:57:10 +01:00
2024-03-27 21:26:06 +01:00
2024-03-18 14:39:30 +01:00
2024-04-11 11:03:06 +02:00
2024-04-17 14:05:45 +02:00
2024-05-03 14:34:28 +02:00
2024-08-07 17:46:09 +02:00
2024-08-07 17:46:09 +02:00
2024-08-07 17:46:09 +02:00
2024-11-14 15:50:21 +01:00
2024-11-14 15:50:21 +01:00
2024-11-14 15:50:21 +01:00
2024-06-24 16:23:55 +02:00
2024-07-08 15:58:26 +02:00
2024-07-30 11:05:41 +02:00
2024-08-20 10:28:52 +02:00
2024-09-13 14:24:45 +02:00
2024-10-01 09:33:56 +02:00
2024-10-23 16:13:28 +02:00
2024-10-24 14:12:46 +02:00
2024-12-17 10:42:36 +01:00
2025-03-06 14:10:16 +01:00
2025-03-18 07:56:44 +01:00
2025-03-31 12:09:18 +02:00
2025-05-27 18:26:24 +03:00
2025-07-15 15:02:56 +02:00
2025-10-14 10:48:30 +02:00
2025-11-27 09:05:22 +01:00
2026-02-16 11:43:45 +01:00
2026-03-07 23:51:08 -05:00
2024-08-13 08:28:20 +02:00
2023-11-09 16:55:43 +01:00
2021-10-08 09:26:43 +02:00
2021-10-08 09:26:43 +02:00