-
-
Notifications
You must be signed in to change notification settings - Fork 61
Change default search method and results order #127
Comments
why not just search by title? |
We should sort the results by relevance (the default sort) rather than by title (as it is now). |
@davisagli editors work with search different than end users, they want the results sorted with most recent items first; also, probably it's better to search only by |
Depends whether you're looking for a recent item or not. I'd say sort by relevance by default, but also provide an option to sort by date, and ideally remember the user's previous sort. I'm fine with searching by Title rather than SearchableText here. |
@davisagli currently search is done on so, basically what we want to fix here is the following:
as we want to change the default behavior I would wait for more people to give their opinion on this. |
Do a query that includes the SearchableText index and DO NOT specify sort_on; then it will be ordered by relevance based on the search terms. |
It is documented, btw: http://docs.zope.org/zope2/zope2book/SearchingZCatalog.html#sorting |
@davisagli so, perfect, as |
@rodfersou tests must be fixed on both branches |
On sites with a lot of content, using the results of a search is a pain for editors as they have to navigate until they find the item they want to include on a link:
what we want to change here is the following:
The text was updated successfully, but these errors were encountered: