Unkown setting error (illegal_argument_exception)

Hi,

I'm stuck with something when creating a new index and putting the data in. I'm trying to figure out Elasticsearch.. but Google has not really helped me yet. I'm running on Elastic version 5.6.3. This is my index:

Summary
    curl -XPUT 'localhost:9200/email_data?pretty' -H 'Content-Type: application/json' -d'
{
	"mappings": {

		"user": {
		  "properties": {
				"account_id": { "type": "integer" },
				"user_info": {
					"type": "nested",
					"properties": {
						"email": { "type": "keyword" },
						"email_fullstring": { "type": "text" },
						"brand": { "type": "keyword" },
						"brand_fullstring": { "type": "text" },
						"gender": { "type": "keyword" },
						"functiegrp": { "type": "keyword" },
						"functiegrp_fullstring": { "type": "text" },
						"functieclst": { "type": "keyword" },
						"functieclst_fullstring": { "type": "text" },
						"KWP": { "type": "keyword" },
						"KWP_fullstring": { "type": "text" },
						"AVKWP": { "type": "keyword" },
						"AVKWP_fullstring": { "type": "text" },
						"branbik": { "type": "keyword" },
						"branbik_fullstring": { "type": "text" },
						"avbranbikl": { "type": "keyword" },
						"avbranbikl_fullstring": { "type": "text" },
						"postal_code": { "type": "keyword" },
						"city": { "type": "keyword" }
					}
				},
				"campagnes": {
					"type": "nested",
					"properties": {
						"id": { "type": "integer" },
						"flights": {
							"properties": {
								"selectie_id": { "type": "integer" },
								"sents":  {
									"type": "nested",
									"properties": { 
										"TID": { "type": "keyword" },
										"send_date": { "type": "date" }
									}
								},
								"clicks": {
									"type": "nested",
									"properties": {
										"TID": { "type": "keyword" },
										"click_date": { "type": "date" }
									}
								},
								"bounces": {
									"properties": {
										"TID": { "type": "keyword" },
										"bounce_date": { "type": "date" },
										"bounce_soort": { "type": "keyword" }
									}
								},
								"opens": {
									"properties": {
										"TID": { "type": "text" },
										"open_date": { "type": "date" },
										"device": { "type": "keyword" },
										"email_client": { "type": "keyword" },
										"ip": { "type": "ip" }
									}
								}
							}
						}
					}
				}
			}
		}
	}
}
'

When running this, there are no errors. But when I try to put in my data:

Summary

curl -XPUT localhost:9200/email_data/?pretty -H "Content-Type: application/json" -d '
{
"user": {
"account_id": "1000034",
"user_info": {
"email": "test@hotmail.com",
"email_fullstring": "test@hotmail.com",
"brand": "something",
"brand_fullstring": "something",
"gender": "M",
"functiegrp": "aaa",
"functiegrp_fullstring": "aaa",
"functieclst": "",
"functieclst_fullstring": "",
"KWP": "5tot9",
"KWP_fullstring": "5tot9",
"AVKWP": "",
"AVKWP_fullstring": "",
"branbik": "Onbekend",
"branbik_fullstring": "Onbekend",
"avbranbikl": "",
"avbranbikl_fullstring": "",
"postal_code": "1111AB",
"city": "Amsterdam"
},
"campagnes": {
"id": "1069",
"flights": {
"selectie_id": "3400",
"sents": {
"TID": "TIDP23605X0941655CB6B4413F8ADE9C8A52E36479YI3",
"send_date": "10-01-2017 00:00:00"
},
"clicks": {
"TID": "TIDP23604XFAB2EB192A8D47259A5946040962B1DDYI3",
"click_date": "10-01-2017 00:00:00"
},
"bounces": {
"TID": "TIDP23605X00271BB1763D4189B0B38C8DC19EB9E3YI3",
"bounce_date": "10-01-2017 00:00:00",
"bounce_soort": "H"
},
"opens": {
"TID": "TIDP23605X07A08C177150424CABFD964DBC606314YI3",
"open_date": "10-01-2017 00:00:00",
"device": "",
"email_client": "O",
"ip": ""
}
}
}
}
}'

I get the error:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "unknown setting [index.user.account_id] 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.user.account_id] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
},
"status": 400
}

I have no clue where to look. Is my format wrong? Or my index? Or is there some setting I don't know about that's causing all this? I'd appreciate the help :slight_smile:

Thanks in advance,

Jens van der Wateren

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