I've got a query similar to this:-
var results = session.Query<MyIndexType, MyIndexer>()
.OrderBy(o => o.ProductName)
//etc...
The results are coming back in a case-sensitive order, e.g. ABCabc. How can I get them in a case-insensitive order (AaBbCc)?
I've tried the .OrderBy() overload that takes an IComparer, passing in StringComparer.InvariantCultureIgnoreCase as the second param, but it makes no difference.
Does the index configuration play a part in this? FYI, the property I'm sorting on is configured in the index with the following options:-
Indexes.Add(o => o.ProductName, FieldIndexing.NotAnalyzed);
Stores.Add(o => o.ProductName, FieldStorage.Yes);