In the ES upgrade from version 2.3 to 7.3 in the process, mapping is a make life difficult for the Hom, many types have changed
7.x common data types: text, keyword, number, array, range, boolean, date, geo_point, ip, nested, object
1 text: word default will be to support fuzzy queries (after the 5.x version string type is obsolete, please use the text).
2 keyword: segmentation is not performed; keyword type doc_values enabled by default to speed up the sorting operation the polymerization, taking up a lot of disk io must be non-disabled doc_values.
. 3 Number: filtration only if the scene less than the range, then the query, keyword use better performance, additional types of digital compression is easier than doc_values string.
. 4 Array: ES array type definitions need not be displayed, used only when data is inserted '[]' can be represented by '[]' element types remain identical.
5 the Range: data on the scope of the index; currently supports number range, date range, ip range
. . 6 Boolean: only accept true, false or a string type "to true", "to false"
. 7 DATE: support millisecond, the corresponding date format, as a long internal storage format according to the specified resolution.
8 geo_point: storing latitude and longitude data pairs.
. 9 ip: ip The data stored in this data type, and conveniently a range of Fuzzy post ip field of the query.
10 nested: a nested type, a particular object type, object memory array, retrieve the internal children.
11 Object: a nested type is not supported arrays.
More information https://blog.csdn.net/gyc790753906/article/details/89181823