Skip to content

Commit ad7690e

Browse files
Update put mapping
1 parent eeef805 commit ad7690e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/reference/indices/put-mapping.asciidoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
For the most up-to-date API details, refer to {api-es}/group/endpoint-indices[Index APIs].
1111
--
1212

13-
Adds new fields to an existing data stream or index. You can also use this
14-
API to change the search settings of existing fields.
13+
Changing a field type in Elasticsearch is often done to improve query performance, enhance search relevance, or resolve data type mismatches (e.g., converting a text field to a keyword field for faster aggregations). However, keep in mind that Elasticsearch does not allow in-place field type changes: you’ll need to create a new index with the updated mapping and reindex the data. However, if the existing data is malformed or incompatible with the updated field type, such as attempting to convert a text field to a date field, it may result in data loss during ingestion.
14+
15+
You can also use this
16+
API to change the mappings of existing fields.
1517

1618
For data streams, these changes are applied to all backing indices by default.
1719

0 commit comments

Comments
 (0)