Skip to content

helgeolav/createopensearchindex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create Opensearch indices mappings

This is a quick tool to create a mapping, either directly on an index or as a template. It can also work as an HTTP server and create a mapping based on the JSON in the PUT request.

The syntax for the input file is:

{
  "input": {
    "field1": "type",
    "field2": "type",
    "nested1": {
      "nestedfield1": "type",
      "nestedfield2": "type"
    }
  }
}

Type is a supported Opensearch format.

You create mappings as follows:

  1. When creating a mapping directly for an index, do a PUT /index-name with the output in the body.
  2. Index templates create with PUT /_index_template/your_template_name and after that when new indices are created matching "index_patters" the mappings are added automatically.

About

A tool to assist in creating opensearch index

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages