[Test coverage improvements] Test coverage improvement for aggregations & other search qeuries for field mapping types. #11033
Labels
enhancement
Enhancement or improvement to existing feature or request
Search:Aggregations
Search
Search query, autocomplete ...etc
As of today, we have several types supported as a index field while creating index.
Like Int, Long, Float, half_float, sclaed_float, etc.
FieldMapper.java Gives idea about such field types. Search queries on those types have several hotpath and there are undercover paths which for which search query code path might not be exactly same. So modifying this code path might give some side effect for some data types while we improve/change some other data types.
For example, while introducing sort optimization for custom numeric types #10997, we got this nasty bug where
half_float
numeric type sort queries were completely broken.Upon digging more, there aren't tests which were covering
half_float
basic sort queries validation.As a part of this PR #11024, we have added that validation, but we do not have single test case for aggregation of
half_float
type.I am creating this issue, to primary add integration tests for
half_float
aggregation search queries. But also validate for other field types and at least add basic search query tests for all field types.The text was updated successfully, but these errors were encountered: