Skip to content

Instantly share code, notes, and snippets.

@michaelkeevildown
Created October 28, 2016 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelkeevildown/bcfe164def38de3dfbf2055601b3907c to your computer and use it in GitHub Desktop.
Save michaelkeevildown/bcfe164def38de3dfbf2055601b3907c to your computer and use it in GitHub Desktop.
Elasticsearch 5.0 POC Template

Elasticsearch v5.x POC Template

PUT _template/poc
{
  "order": 0,
  "template": "poc-*",
  "settings": {
    "index": {
      "number_of_shards": "1",
      "refresh_interval": "5s"
    }
  },
  "mappings": {
    "_default_": {
      "dynamic_templates": [
        {
          "strings": {
            "match_mapping_type": "string",
            "mapping": {
              "type": "text",
              "fields": {
                "raw": {
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            }
          }
        }
      ]
    }
  },
  "aliases": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment