Elasticsearch OpenSearch Metadata

By Opster Team

Updated: Aug 29, 2023

| 1 min read


Metadata in OpenSearch refers to additional information stored for each document. This is achieved using the specific metadata fields available in OpenSearch. The default behavior of some of these metadata fields can be customized during mapping creation.


Using _meta meta-field for storing application-specific information with the mapping:

PUT /my_index?pretty
  "mappings": {
    "_meta": { 
      "domain": "security",
      "release_information": {
        "date": "18-01-2020",
        "version": "7.5"


  • Meta fields available include: _index, _type, _id, _source, _size, and _field_name.

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?