我有一些數據存儲在elasticsearch與輪胎。假設我有這樣的數據:customer_name/amount。Elasticsearch奇怪的排序結果
現在,當我按量排序時,一切都很好。但是,名稱結果排序時的意外:
這些都是名降序排序的結果:
Lukas Marcus
Visser
Visser
Meik Kalte
Meik Kalte
Kalte Meik
Meik Kalte
Meik Kalte
Cust Imp Mc
Cust Imp Mc
Cust Imp Mc
John Doe
John Doe
Born Joan
Born Joan
Born Joan
Card Image
Card Image
Card Image
Aelps_Iso
Aelps_Iso
排序ASC:
Visser
Visser
Cust Imp Mc
Card Image
Card Image
Cust Imp Mc
Cust Imp Mc
Aelps_Iso
Aelps_Iso
Born Joan
Born Joan
Born Joan
Card Image
John Doe
John Doe
Meik Kalte
Meik Kalte
Kalte Meik
Meik Kalte
Meik Kalte
Lukas Marcus
注意,「維瑟是頂部在兩種情況下的。
查詢參數:
@filters=[{:term=>{"user_id"=>605}}],
@sort=[{"customer_name"=>{:order=>"asc"}}
任何提示?
在任何情況下,你檢查[這](https://github.com/karmi/retire/wiki/Sorting-Results)? –