Opensearch Index Mapping. How to Index OpenSearch So it is recommended to save one mapping type into one index Also, each index contains index mappings, which define field names and data types in the index
Getting started with multilayer maps in OpenSearch · OpenSearch from opensearch.org
This approach seems supported by the Opensearch docs, which state (emphasis mine): If you want to create or add mappings and fields to an index, you can use the put mapping API operation If you need to index a large and unpredictable number of keyword fields on inner objects then you can use the flattened field type which maps all the object content into a single field and allows you to run basic query operations
Getting started with multilayer maps in OpenSearch · OpenSearch
For an existing mapping, this operation updates the mapping From OpenSearch version 6.0 by default index doesn't allow multiple types per index If you need to index a large and unpredictable number of keyword fields on inner objects then you can use the flattened field type which maps all the object content into a single field and allows you to run basic query operations
[Tutorial Ep 2] Opensearch / Elasticsearch Index Overview Shards, Scaling, Replication, Query. Whether OpenSearch should apply mapping updates only to the write index While dynamic mappings automatically add new data and fields, using explicit mappings is recommended
amazon web services How to create an index pattern in Opensearch using API? Stack Overflow. You can't use this operation to update mappings that already map to existing data in the index. The better option is to always have one document type per index