Hello.
Wrong sorting result for product name with polish characters.
ElasticSearch Version: 2.4.6, Build: 5376dca/2017-07-18T12:17:44Z, JVM: 1.7.0_151
"version" : {
"number" : "2.4.6",
"build_hash" : "5376dca9f70f3abef96a77f4bb22720ace8240fd",
"build_timestamp" : "2017-07-18T12:17:44Z",
"build_snapshot" : false,
"lucene_version" : "5.5.4"
},
Plugins: Installed plugins in /usr/share/elasticsearch/plugins:
- analysis-stempel
- analysis-phonetic
- analysis-icu
Steps to reproduce
I added 4 rows with names:
Łatwa naz
Latwa naz
Łatwa naa
Latwa naa
I search by "latwa" and sorting by "name" DESC
Expected result
Łatwa naz
Łatwa naa
Latwa naz
Latwa naa
"Ł" should be before "L"
Actual result
Łatwa naz
Latwa naz
Łatwa naa
Latwa naa
Configuration:
"pl_ascii_folding": {
"type": "asciifolding",
"preserve_original": "1"
},
"sortable": {
"type": "custom",
"filter": [
"pl_ascii_folding",
"lowercase"
],
"tokenizer": "keyword"
}
Query:
?q=name:latwa&sort=name.sortable:DESC'
Problem from Problem with sort with polish(POLAND) words! is not the same.
For ElasticSearch version 6.1 is ok.