# Unsupported parameters for multi fields

**URL:** <https://discuss.elastic.co/t/unsupported-parameters-for-multi-fields/258423>\
**Category:** Elasticsearch\
**Created:** [December 11, 2020, 2:45pm UTC](https://discuss.elastic.co/t/unsupported-parameters-for-multi-fields/258423 "2020-12-11T14:45:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![S\_Hamdi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s_hamdi/32/80590_2.png) [@S\_Hamdi](https://discuss.elastic.co/u/S_Hamdi)\
**Post date:** [December 11, 2020, 2:45pm UTC](https://discuss.elastic.co/t/unsupported-parameters-for-multi-fields/258423/1 "2020-12-11T14:45:28Z")

</div>

Hello,

I am new to Elastic.

I am getting the following error while uploading the ES index template.

```
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Mapping definition for [path] has unsupported parameters:  
[field : {keyword={ignore_above=256, type=keyword}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: 
Mapping definition for [path] has unsupported parameters: [field : {keyword={ignore_above=256, type=keyword}}]","caused_by":
{"type":"mapper_parsing_exception","reason":"Mapping definition for [path] has unsupported parameters: 
 [field : {keyword={ignore_above=256, type=keyword}}]"}},"status":400}

```

This is my index

```
{
	"mappings": {
		"_doc": {
			"properties": {
				"offerId": {
					"type": "text",
					"fields": {
						"keyword": {
							"type": "keyword",
							"ignore_above": 256
						}
					}
				},
				"offerDetail": {
                                        "type"= "nested",
					"properties": {
						 "dataStatus" : {
						 	"properties": {
						 		"value": {
						 			"type": "text",
						 			"field": {
						 				"keyword": {
						 					"type": "keyword",
						 					"ignore_above": 256
						 				}
						 			}
						 		},
						 		"content": {
						 			"properties": {
						 				"key": {
						 					"type": "text",
						 					"field": {
						 						"keyword": {
						 							"type": "keyword",
						 							"ignore_above": 256
						 						}
						 					}	
						 				}
						 			}
						 		}
						 	}
				 		},
				 		"images": {
				 			"properties": {
				 				"path": {
				 					"type": "text",
				 					"field": {
				 						"keyword": {
				 							"type": "keyword",
				 							"ignore_above": 256
				 						}
				 					}
				 				},
				 			}
				 		},
				 		"annualPrice": {
				 			"properties": {
				 				"cutPriceExcludingVat": {
				 					"type": "long"
				 				},
								"monthlyExcludingVat": {
									"type": "long"
								},
								"quotationId": {
				 					"type": "text",
				 					"field": {
				 						"keyword": {
				 							"type": "keyword",
				 							"ignore_above": 256
				 						}
				 					}
								}
				 				
				 			}
				 		}
				 	}
				}
			}
		}
	}
}

```

I get this error for all the attributes that the are multi field (text with field keyword" What I tried to do is to change the type of path to "keyword" and not multiple fields.

```
					 				"path": {
					 					"type": "keyword"	
					 				}

```

And that pass. But I need to understand why I can go with the multi fields ??

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [December 18, 2020, 11:24am UTC](https://discuss.elastic.co/t/unsupported-parameters-for-multi-fields/258423/2 "2020-12-18T11:24:23Z")

</div>

The issue here is because multi-field should be declared with `fields` and not `field`. The definition for property `offerId` is correct but all the others are wrong.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 15, 2021, 11:24am UTC](https://discuss.elastic.co/t/unsupported-parameters-for-multi-fields/258423/3 "2021-01-15T11:24:38Z")

</div>

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