Failed to parse value [analyzed] as only [true] or [false] are allowed. ES upgrade 5.5 -> 6.5

Recently we upgraded ES to 6.5 from 5.5. The same template which we used to push in Elasticsearch 5 is not working in ES 6. It is throwing below error.

"type":"illegal_argument_exception","reason":"Failed to parse value [analyzed] as only [true] or [false] are allowed."}}},"status":400

Our template has like,

"mapping": {
"analyzer": "pattern_analyzer",
"index": "analyzed",
"omit_norms": true,
"type": "text",
"fields": {
"raw": {
"analyzer": "lowercase_keyword",
"type": "text"
}

So has this got changed in ES6?

Yes. As it was analyzed you can just remove this line entirely.

Thanks :slight_smile:

What about this case when it is mentioned as not analyzed.

"fullIpAddress": {
					"index": "not_analyzed",
					"type": "keyword"
				} 

Q1. Can we directly remove "index": "not_analyzed" form mapping?

Q2. By Removing both "index": "analyzed / "not_analyzed" from ES6 templates, will it cause any changes in data storing in ES db as our application will retrieve data from ES by the same search queries which we used to do for ES5? If data storing gets changed then those search queries might not work without tuning.

Use:

"fullIpAddress": {
  "type": "keyword"
} 

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