I am new to elastic search I am trying to create index with the below mapping which i found online and using kibana as my client it throwing error as .
PUT /local_test
{
"settings": {
"index.mapping.total_fields.limit": 1000,
"index.mapping.depth.limit": 20,
"index.mapping.nested_fields.limit": 50,
"number_of_shards": 5,
"number_of_replicas": 1,
"analysis": {
"analyzer": {
"edge_ngram_analyzer": {
"type": "custom",
"tokenizer": "edge_ngram_tokenizer",
"filter": [
"lowercase",
"en_stopwords"
]
},
"standard_custom": {
"type": "custom",
"char_filter": [
"punctuation_remap"
],
"tokenizer": "standard",
"filter": [
"lowercase",
"en_stopwords"
]
},
"lowercase_keyword": {
"type": "custom",
"tokenizer": "keyword",
"filter": [
"lowercase"
]
}
},
"tokenizer": {
"edge_ngram_tokenizer": {
"type": "edge_ngram",
"min_gram": 2,
"max_gram": 50,
"token_chars": [
"letter",
"digit"
]
}
},
"filter": {
"en_stopwords": {
"type": "stop",
"stopwords": "_english_"
}
},
"char_filter": {
"punctuation_remap": {
"type": "mapping",
"mappings": [
". => -",
": => -",
"' => -"
]
}
}
}
},
"mappings": {
"local_test": {
"_all": {
"enabled": false
},
"properties": {
"id": {
"type": "keyword"
},
"user_id": {
"type": "keyword"
},
"created_at": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||epoch_millis"
},
"docvalue": {
"type": "object",
"dynamic": false,
"enabled": true,
"properties": {
"key": {
"type": "text",
"analyzer": "lowercase_keyword"
},
"value": {
"type": "text",
"analyzer": "lowercase_keyword"
}
}
},
"recurring": {
"type": "boolean"
},
"amount": {
"type": "long"
}
}
}
}
}
"type" : "mapper_parsing_exception", "reason" : "Root mapping definition has unsupported parameters: [local_test : {_all={enabled=false}, properties={amount={type=long}, user_id={type=keyword}, recurring={type=boolean}, created_at={format=yyyy-MM-dd HH:mm:ss||epoch_millis, type=date}, id={type=keyword}, docvalue={dynamic=false, type=object, enabled=true, properties={value={analyzer=lowercase_keyword, type=text}, key={analyzer=lowercase_keyword, type=text}}}}}]"