Try our conversational search powered by Generative AI!

Sorting by SearchTitle Å before A

Vote:
 

Åke is listed before Anders when I have something like this:

var query = SearchClient.Instance.UnifiedSearchFor(this.QueryParameter, Language.Swedish)

    

And then this:

query = query.OrderBy(x => x.SearchTitle);

    

 

 

#63774
Nov 29, 2012 10:54
Vote:
 

Hi,

Could you please send the values of SearchTitle for 'Anders' and 'Åke'? Using simply the values 'Anders' and 'Åke' will list 'Anders' before 'Åke' (as we swedes would like it to be).

Regards,

Henrik

#63858
Dec 03, 2012 9:58
Vote:
 

In Fiddler I can see that my search Request contains the sort value "SearchTitle$$string.sort".

Looking at the response, the first item is:

SearchTitle$$string=Åke ...

And then the one after:

SearchTitle$$string=Anders ...

Weird is that each hit has a "sort" key with a value that contains something that looks like Chinese chars (Ꭰ䭋椩ぃ⤹䳌窞䄭¿❂䀱砈硠). I'm guessing this is the problem?

#63952
Dec 05, 2012 13:11
Vote:
 

I'm using 1.0.0.278 and EPi 6.1.379.502.

#64046
Dec 08, 2012 11:08
Vote:
 

The sort key is generated by a set of collation rules and should look a little strange. Can you try 'clearing' your index (to get our latest and greatest ruleset) and reindex your documents?

/Henrik

#64094
Dec 10, 2012 17:18
Vote:
 

Great! Åke hits rock bottom now.

#64160
Dec 11, 2012 16:56
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.