Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

Smart search sort order multiple columns

$
0
0
I am trying to sort my search index results by multiple columns, as in sort by name ASC, then by date DESC. Is this possible?I am passing SearchParameters into the SearchHelper.Search() method like this:SearchParameters parameters = new SearchParameters() { SearchFor = searchQuery, SearchSort = customSortMethod, Path = @/%@, ClassNames = @@, CurrentCulture = @EN-US@, DefaultCulture = CultureHelper.EnglishCulture.IetfLanguageTag, CombineWithDefaultCulture = false, CheckPermissions = false, SearchInAttachments = false, User = (UserInfo)MembershipContext.AuthenticatedUser, SearchIndexes = index.IndexName, StartingPosition = ((currentCustomPage - 1) * (SearchResultsPageSize ?? 18)), DisplayResults = displayResults, NumberOfProcessedResults = 10000, NumberOfResults = 0, AttachmentWhere = String.Empty, AttachmentOrderBy = String.Empty };

Viewing all articles
Browse latest Browse all 8901

Trending Articles