Hi,
Is sorting by Romanization, specifically Pinyin supported currently?
It should be sorted along other languages with Roman alphabet, so the sorting results should be in an order like this:
- a,
- b,
- C, // ignore case
- j,
- jA,
- Jb,
- JC,
- 姐 (Jiě), // consider the transliteration
- s,
- 石 (Shí),
- x,
- 小 (Xiǎo),
- z
For now a normalizer with lowercase and asciifolding filters is used for the text keyword:
PUT test
{
"settings": {
"analysis": {
"normalizer": {
"my_normalizer": {
"type": "custom",
"char_filter": [],
"filter": [
"lowercase",
"asciifolding"
]
}
}
}
},
"mappings": {
"properties": {
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"normalizer": "my_normalizer",
"ignore_above" : 256
}
}
}
}
}
}
Thanks