When I run the search it takes no notice of my ordering. Its almost like the standard sorting is overriding my stuff. The results are always following the order of the sortOrder field.
The only way I have figured out how to sort of do this is by parsing the ISearchableResults as a List
The problem with this is I think its a lot more speed expensive than it has to be. Following this I will be using paging so I don't need the whole data-set as a list. I only need 10 for example but I need then ordered before convert ToList() and .Skip() / .Take().
Umbraco Examine Lucene OrderBy Date
Hi Guys,
I am having a little trouble ordering the Examine.ISearchResults by a specified date fields.
I looked at a lot of examples online and also some previous posts with similar issues but found no answers. Hopefully one of you can help.
I have tried all these examples.
I have also added the field as a sortable field within the ExamineIndex.config
When I run the search it takes no notice of my ordering. Its almost like the standard sorting is overriding my stuff. The results are always following the order of the sortOrder field.
The only way I have figured out how to sort of do this is by parsing the ISearchableResults as a List
The problem with this is I think its a lot more speed expensive than it has to be. Following this I will be using paging so I don't need the whole data-set as a list. I only need 10 for example but I need then ordered before convert ToList() and .Skip() / .Take().
Does anyone know the best way to OrderBy Date?
Thanks in advance.
Kind Regards
David
is working on a reply...