Forum Discussion
María José Pedreira
May 22, 2017Brass Contributor
URL for the Search results
I would like to solve 2 doubts about search in Sharepoint. I have a page with three webparts: search box, search results and another one for refiners. 1) First doubt. I wonder if my url is righ...
- May 22, 2017..like I proposed 3 years ago ;) http://www.techmikael.com/2013/06/add-clear-filters-link-to-your-search.html
Mikael Svenson
May 22, 2017Iron Contributor
1. This is expected as is uses async loading of subsequent searches. The only way to do this and keeping the term in the URL is by using the # parameter. By appending # params you can modify the URL without the whole page re-loading.
2. Search solutions typically don't have a "clear" term. You remove them, and type something else. This resets all filters as well.
So, ignore the URL - it's just state, and how MS decided to implement async loading as well as being able to copy/paste links that work with the right query.
2. Search solutions typically don't have a "clear" term. You remove them, and type something else. This resets all filters as well.
So, ignore the URL - it's just state, and how MS decided to implement async loading as well as being able to copy/paste links that work with the right query.
- María José PedreiraMay 22, 2017Brass Contributor
Hi Mikael,
About point 1) ok, thank you for the information.
About point 2), for an advanced user I think there is no problem because its easy to remove filters and try a new query. But in the case of a not advanced users, they'll think that the search is working wrong... In that case, what is your suggestion... Create a link for "Clear results"? Is that the best solution?
Thank you
- Mikael SvensonMay 22, 2017Iron Contributor..like I proposed 3 years ago ;) http://www.techmikael.com/2013/06/add-clear-filters-link-to-your-search.html
- María José PedreiraMay 22, 2017Brass Contributor
Hi Mikael Svenson,
I read your article this morning! And when I said that I want to avoid a link for clearing filters I was thinking about your solution....
But ok, I'll do that. Is an option.
Thank you again :)