Creating a "Sort by" Button for the Search Results Page in Guide
I am wondering if there is a way to sort the search results in Zendesk Guide by the date that the article/post was created. Currently it just returns ten results per page for each query and there is an option to paginate the results. However, the results are returned in a random order in terms of created date. I would like to create a option for the user to sort the search results by the date. I have researched different strategies on how to do this and could not come up with a solution.
-
Hi Zachary,
we do have a plan to add search results sorting by created/updated date - at least in the back end at first. Should be done in the next couple of months.
The search results are currently sorted by relevance only.
-
Hi Bogdan,
Is it already possible to use the created date as a sorting option?
-
Hi Frits!
not in the UI, but there is an option in the Search API.
-
Is there any update on this? This functionality would be really useful
-
Hi @... and Zachary Thompson - Could you please work on a link that allows us the option of displaying the results in a certain order? For example, https://support.zendesk.com/hc/en-us/search?query=keyword&sort=latest (the query=keyword already exists, please add a sort=type). Thanks!
-
Hi @..., do you have any updates on this? (re: query sort by link)
-
Hi Naomi Watnick,
Thanks for raising this. We have the same requirement to be able to give our users a sorting facility.
I am a dev, and have reviewed the documentation, and from what I can see, this is only achievable by custom building the search results using the help centre API. Please see a link to this below:
https://developer.zendesk.com/rest_api/docs/help_center/search#search-articles
The 'sort by' feature is listed in the table and will allow for 'created at' and 'updated at'. You can also have a 'sort order' - please see this in the table as well. The sort order will allow for 'ascending' and 'descending'.
Vous devez vous connecter pour laisser un commentaire.
7 Commentaires