mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-27 10:34:42 -05:00
test(search): pin a fractional filter key on a whole-number field
Both engines answer a term filter of 1.5 on Size with no match and no error; OpenSearch does not reject it on its long mapping.
This commit is contained in:
1 parent
4062029e90
commit
ba01f1d0f4
2 files changed
+3
No files matched your search
@@ -880,6 +880,7 @@ Fixtures:
|
||||
| AGG-21 | `mediatype:image` reads `a metric without a single value has none` | audio.year avg none, audio.year min none, audio.year sum none | audio.year avg none, audio.year min none, audio.year sum none | audio.year avg none, audio.year min none, audio.year sum none | ✅ |
|
||||
| AGG-22 | `mediatype:audio` reads `filtered to the Saxon bucket, as many matches as the bucket counted` | a.mp3, audio.artist Saxon=2, b.mp3 | a.mp3, audio.artist Saxon=2, b.mp3 | a.mp3, audio.artist Saxon=2, b.mp3 | ✅ |
|
||||
| AGG-23 | `mediatype:audio` reads `filtered to saxon, a bucket key matches case-sensitively` | no match | no match | no match | ✅ |
|
||||
| AGG-46 | `mediatype:audio` reads `filtered to a fractional key on a whole-number field, no match and no error` | no match | no match | no match | ✅ |
|
||||
| AGG-24 | `mediatype:audio` reads `filtered to the Saxon or the Motörhead bucket` | a.mp3, b.mp3, c.mp3, d.mp3, e.mp3 | a.mp3, b.mp3, c.mp3, d.mp3, e.mp3 | a.mp3, b.mp3, c.mp3, d.mp3, e.mp3 | ✅ |
|
||||
| AGG-25 | `mediatype:audio` reads `filtered to audio.year 1980-1990` | c.mp3 | c.mp3 | c.mp3 | ✅ |
|
||||
| AGG-26 | `mediatype:audio` reads `filtered to audio.year 1982-1999, from-inclusive and to-exclusive` | c.mp3 | c.mp3 | c.mp3 | ✅ |
|
||||
|
||||
@@ -273,6 +273,8 @@ func aggregationCases() []aggCase {
|
||||
want: []string{"a.mp3", "b.mp3", "audio.artist Saxon=2"}},
|
||||
{id: 23, query: "mediatype:audio", reads: "filtered to saxon, a bucket key matches case-sensitively",
|
||||
filters: []*searchService.AggregationFilter{terms("audio.artist", "saxon")}},
|
||||
{id: 46, query: "mediatype:audio", reads: "filtered to a fractional key on a whole-number field, no match and no error",
|
||||
filters: []*searchService.AggregationFilter{terms("Size", "1.5")}},
|
||||
{id: 24, query: "mediatype:audio", reads: "filtered to the Saxon or the Motörhead bucket",
|
||||
filters: []*searchService.AggregationFilter{terms("audio.artist", "Saxon", "Motörhead")},
|
||||
want: []string{"a.mp3", "b.mp3", "c.mp3", "d.mp3", "e.mp3"}},
|
||||
|
||||
Reference in new issue
Block a user