I have two IQueryables that i need to merge. This is my code:
such that all results having region name "UK" will appear on top while all results having region other than UK will appear after search results of "UK" When I am trying to run the same getting this issue :
Please let me know if there is any other query or way which I should try to get expected output
Below is the screenshot of my updated code :
But this code is not working working as while building the same I am facing this error: cannot convert from 'System.Collections.Generic.List>' to 'Sitecore.ContentSearch.Linq.SearchResults'
This issue is occuring while I am trying to pass finalList in funtion MapResults()(Declaration of MapResults funtion is as : IEnumerable MapResults(SearchResults hits))
Requirement for the same is that I want to get all job results base on UK region on top and then rest of the job results after that. Please let me know if there is any suggestion on the same.