Sorting Japanese words in Elastic Search


(Nazim) #1

Hi Team,

Seems there is an issue with Sorting Japanese words in Elastic Search.

If i have 2 words - 東京 (In English it is Tokyo) , 神奈川 (In English it is Kanagawa) sorting those words ascending and descending do not return results as expected. I am using the ICU plugin and below is the analyzer defined on this attribute.

"postToLocationName_ja_JP": {
"type": "icu_collation_keyword"
}
Expected behaviour
Ascending order
神奈川
東京

Descending Order
東京
神奈川

Actual behaviour which looks bug to me

Ascending order
東京
神奈川

Descending Order

神奈川
東京

Please do let me know if I am missing some thing here.


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.