Hi everyone,
Currently I am using the Elasticsearch 7.9.3 version. the issue is price sort works wrong after upgrading the old version. Price data's are mixed with double , integer. Please let me know what happened in the new version or suggest the new mapping type for price or amount. 4 and 4 raw is price sort
{"user_products":{"mappings":{"properties":{"1":{"type":"text","fielddata":true},"2":{"type":"text","fielddata":true},"3":{"type":"text","fielddata":true},"4":{"type":"scaled_float","scaling_factor":100},"5":{"type":"double"},"6":{"type":"text","fielddata":true},"7":{"type":"text","fielddata":true},"8":{"type":"text","fielddata":true},"9":{"type":"text","fielddata":true},"10":{"type":"text","fielddata":true},"11":{"type":"text","fielddata":true},"12":{"type":"text","fielddata":true},"13":{"type":"text","fielddata":true},"14":{"type":"scaled_float","scaling_factor":100},"15":{"type":"text","fielddata":true},"16":{"type":"text","fielddata":true},"10_raw":{"type":"keyword"},"11_raw":{"type":"keyword"},"12_raw":{"type":"keyword"},"13_raw":{"type":"keyword"},"15_raw":{"type":"keyword"},"16_raw":{"type":"keyword"},"1_raw":{"type":"keyword"},"2_raw":{"type":"keyword"},"3_raw":{"type":"keyword"},"6_raw":{"type":"keyword"},"7_raw":{"type":"keyword"},"8_raw":{"type":"keyword"},"9_raw":{"type":"keyword"},"catalog":{"type":"long"},"condition":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"currency":{"type":"long"},"feed_import_name":{"type":"text","fielddata":true},"feed_import_name_raw":{"type":"keyword"},"import_feed_name":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"import_feed_name_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"import_id":{"type":"long"},"imports":{"properties":{"1":{"properties":{"1":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"2":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"3":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"4":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"5":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"6":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"7":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"9":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"10":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"10_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"1_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"2_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"3_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"4_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"5_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"6_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"7_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"9_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}}}},"2":{"properties":{"1":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"2":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"3":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"4":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"5":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"7":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"9":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"10":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"15":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"47":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"10_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"15_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"1_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"2_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"47_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"4_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"5_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"7_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"9_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}}}},"3":{"properties":{"1":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"3":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"4":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"5":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"6":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"7":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"10":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"10_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"1_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"3_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"4_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"5_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"6_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"7_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}}}},"summary":{"properties":{"1":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"2":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"3":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"4":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"5":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"6":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"7":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"9":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"10":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"10_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"1_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"2_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"3_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"4_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"5_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"6_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"7_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"9_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}}}}}},"part_number":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"product_details_key":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"summary":{"properties":{"1":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"2":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"3":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"4":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"5":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"6":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"7":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"9":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"10":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"15":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"47":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"10_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"15_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"1_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"2_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"3_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"47_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"4_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"5_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"6_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"7_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"9_raw":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}}}},"user_id":{"type":"long"}}}}}
Price data is output