Using Lucene
, and content search
I cannot sort items by their name nor custom title field.
The items are imported from a read-only data provider and are successfully indexed (I've inspected it manually)
The results I get back are semi-in-order but not but incoherent. Without the orderby clause, the items are more in-order than without it which is unusual.
Here's the simplified code:
ProviderSearchContext
.GetQueryable<MyCustomSearchResultItem>()
.Filter(m => m.TemplateId == "{SomeGuid}")
.OrderBy(m => m.Title)
.Skip(20 * (Page - 1))
.Take(20)
.GetResults()
public class MyCustomSearchResultItem: SearchResultItem {
[IndexField("title")]
public string Title { get; set; }
}