Hello, I've been using the next component template in elastic 7. I recently upgraded to elastic 8.1 and it won't let me create the template like before.
{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "Failed to parse mapping: dynamic template [keywords] has invalid content [{\"match_mapping_type\":\"string\",\"mapping\":{\"normalizer\":\"lowerascii\",\"type\":\"keyword\"}}], attempted to validate it with the following match_mapping_type: [string]"
}
],
"type" : "mapper_parsing_exception",
"reason" : "Failed to parse mapping: dynamic template [keywords] has invalid content [{\"match_mapping_type\":\"string\",\"mapping\":{\"normalizer\":\"lowerascii\",\"type\":\"keyword\"}}], attempted to validate it with the following match_mapping_type: [string]",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "dynamic template [keywords] has invalid content [{\"match_mapping_type\":\"string\",\"mapping\":{\"normalizer\":\"lowerascii\",\"type\":\"keyword\"}}], attempted to validate it with the following match_mapping_type: [string]",
"caused_by" : {
"type" : "mapper_parsing_exception",
"reason" : "normalizer [lowerascii] not found for field [__dynamic__keywords]"
}
}
},
"status" : 400
}
I've launched again in kibana, and the same error:
{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "Failed to parse mapping: dynamic template [keywords] has invalid content [{\"match_mapping_type\":\"string\",\"mapping\":{\"normalizer\":\"lower_ascii_normalizer\",\"type\":\"keyword\"}}], attempted to validate it with the following match_mapping_type: [string]"
}
],
"type" : "mapper_parsing_exception",
"reason" : "Failed to parse mapping: dynamic template [keywords] has invalid content [{\"match_mapping_type\":\"string\",\"mapping\":{\"normalizer\":\"lower_ascii_normalizer\",\"type\":\"keyword\"}}], attempted to validate it with the following match_mapping_type: [string]",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "dynamic template [keywords] has invalid content [{\"match_mapping_type\":\"string\",\"mapping\":{\"normalizer\":\"lower_ascii_normalizer\",\"type\":\"keyword\"}}], attempted to validate it with the following match_mapping_type: [string]",
"caused_by" : {
"type" : "mapper_parsing_exception",
"reason" : "normalizer [lower_ascii_normalizer] not found for field [__dynamic__keywords]"
}
}
},
"status" : 400
}
Thanks a lot. Now is working. I don't understand why is working fine in 7.16.2 but not un 8.1.0.
I have it in a python script and I've launch in both elastics.
I've change it, and its working!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.