I'm attempting to add an 'asciifolding' field to my title field, and have tried various examples, signatures and syntaxes, but they all seem to fail. Is asciifolding deprecated or something? thanks.
PUT /my_index
{
"settings": { "number_of_shards": 1 },
"mappings": {
"my_type": {
"properties": {
"title": {
"type": "string",
"analyzer": "english",
"fields": {
"std": {
"type": "string",
"analyzer": "standard"
},
"fold": {
"type": "string",
"tokenizer": "standard",
"filter": [ "lowercase", "asciifolding" ]
}
}
}
}
}
}
}
error message:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [fields] has unsupported parameters: [filter : [lowercase, asciifolding]] [tokenizer : standard]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [my_type]: Mapping definition for [fields] has unsupported parameters: [filter : [lowercase, asciifolding]] [tokenizer : standard]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [fields] has unsupported parameters: [filter : [lowercase, asciifolding]] [tokenizer : standard]"
}
},
"status": 400
}