The Elasticsearch version is somewhat different from the previous version. There are many inconsistencies in the official documentation. It is estimated that the changes are too fast and the update is not timely.
The most obvious change is that an index can only have one type. The recommended type name is _doc. After version 7.0, the type will be completely abandoned.
- Type (Type)[Deprecated in 6.0.0.]
warn! Type is no longer favored in version 6.0.0
The string of the field type (datatype) is cancelled, but it seems that it can be replaced by the text type.
The index in mapping parameters can only receive one bool value, true or false
There are still such examples in the official Chinese documentation, which are obviously inapplicable.
"_type": { "type": "string", "index": "not_analyzed" }