Creating a template in elastic 5.1 fails , which succeeds in 2.x

Hello,

I am trying to create a template for dynamic indexes. The main reason to create the template is to make sure some of my properties are not indexed. The same works in ES 2.x. Below is my template:

PUT /_template/cisprodindextemplate
{
"template": "logstash-cis-prod-*",
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 1
},
"mappings": {
"cisprod": {
"properties": {

				"events": {
					"type": "string",
                    "index": "false"					
				}
			
			}
		}
	}

}

}

I get the following error:

{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "unknown setting [index.mappings.cisprod.properties.events.index] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
}
],
"type": "illegal_argument_exception",
"reason": "unknown setting [index.mappings.cisprod.properties.events.index] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
},
"status": 400
}

Any help is really appreciated.

Ravi.

removing "index": has resolved the issue.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.