Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Ordering Search Result

Vote:
 

Hi All,

Does somebody know - how to order search results by string property ignoring case?

#74539
Aug 30, 2013 15:10
Vote:
 

I don't think there's currently any way to do that (ignoring case) using the .NET API, although it certainly would be possible using the REST API (meaning it's a very reasonable feature request).

For now the easiest way would be to mold your index a little bit to include an additional field with the value of the property already lower cased. In other words, add a property to your class(es) with the value as lowercase, or include an extension method, and then sort by that.

#74551
Sep 01, 2013 1:24
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.