Smart search results order and pagination

L B asked on October 26, 2018 05:13

We are using the Smart Search Box in conjunction with the Smart Search Results and Smart Search Filter webparts on our site. Our Smart Search Filter has been set up so that it orders the search results based on document name (two options - one to sort ascending and one for descending) and relevance using a dropdown list. The 'Relevance' option is the first option in the dropdown.

We've noticed that when you go to the next page of the search results when you've chosen something that is not the first option in the dropdown, the sort order resets to the first dropdown list - so for us it goes back to Relevance, even though the user had chosen something else on the previous page.

Is there something that we're missing in setup that is causing this?

Recent Answers


David te Kloese answered on October 26, 2018 12:06

What paging mode do you use? Querystring or postback?

If you set the paging mode of the Results Web Part to postback is should work with the default filter settings.

If you want to use Querystring paging you should update code (so custom work) to also check and set the filter values in the URL.

1 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on October 26, 2018 22:15 (last edited on October 26, 2018 22:23)

Uncheck auto-postback checkbox (filter properties -> Filter auto post-back) for your Filter web part. You probably have a mix between search parameters passed by query string and via form POST. All you search web parts should pass data by query string, so the navigation in a browser works correctly and you can refer to search page from anywhere.

1 votesVote for this answer Mark as a Correct answer

L B answered on October 29, 2018 00:09

We have decided to go the custom route and update the code so that the filter values are added to the URL. Thanks for all the suggestions!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.