Handle primitive numeric types in sort #80547
Labels
>enhancement
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
Now that numeric sort uses indexed points to skip over non-competitive documents,
Lucene 9 requires that the same data/type is stored in points and doc values.
We break this assumption in ES by using the wider numeric sort type for every field,
(e.g. shorts use longs).
So for now we forbid the usage of points in numeric sort on field types that use a different sort type.
We should expose these optimizations for all numeric types but that would require
to rewrite the logic to handle mixed types when merging results coming from different indices.
Relates #78699, #74057
The text was updated successfully, but these errors were encountered: