Hello,
I'm trying to configure an insensitive case sort in my ES 5.1.1 .
I have followed the ES documentation and I have create my mapping this way :
PUT g_config
POST g_config/_close
PUT g_config/_settings
{
"index": {
"analysis": {
"analyzer": {
"case_insensitive_sort": {
"type": "custom",
"tokenizer": "keyword",
"filter": [ "lowercase" ]
}
}
}
}
}
POST g_config/_open
PUT g_config/g_item/_mapping
{
"properties": {
"type": {
"type": "keyword",
"fields": {
"lower_case_sort": {
"type": "keyword",
"analyzer": "case_insensitive_sort"
}
}
}
}
}
Unfortunately, it does not work. I have the following error :
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [fields] has unsupported parameters: [analyzer : case_insensitive_sort]"
}
],
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [fields] has unsupported parameters: [analyzer : case_insensitive_sort]"
},
"status": 400
}
Is there a bug or am I doing something wrong ?
Regards,
Pierre.