User's sorting options for search results
As a .Stat DE user
In order to easier find specific dataflows
I want to sort the search results by different predefined criteria.
The search result dataflows are sorted by default in this order:
FREE TEXT SEARCH:
- By descending relevance, in case a free-text search was made. See #57 (closed) and dotstatsuite-data-explorer#46 (closed) for the rules on relevance.
- Then by ascending alphabetical order of the localised name of the Dataflow (in case of same relevance)
- Then by descending last update date (in case of same relevance and same localised dataflow name)
FACETTED NAVIGATION:
- By ascending alphabetical order of the localised name of the Dataflow
- Then by descending last update date (in case of same localised dataflow name)
Scenario 1: Sort search results by relevance
Given that I'm using the DE
When I have done a free-text search
And I have done nothing else (default behaviour) or I have chosen the sort option "Relevance"
Then I want to see the search results ordered by relevance (location and frequency of search hits per result).
Scenario 2: Sort search results alphabetically by dataflow name
Given that I'm using the DE
When I have done a free-text search and chosen the sort option "Alphabetical"
Or I have done a facet navigation and done nothing else (default behaviour)
Then I want to see the search results ordered alphabetical by dataflow name (A-Z).
Scenario 3: Sort search results by descending last updated
Given that I'm using the DE
When I have done a free-text search or a facet navigation
And I have chosen the sort option "Last updated"
Then I want to see the search results ordered by descending last updated date.
Additional specifications:
- In all case the sort option list is fixed, and the content is always ordered by 1. Relevance, 2. Alphabetical, 3. Last updated.
- When I do not perform a free text search but only a facet selection from the homepage, the Relevance option is not possible and it must thus be hidden from the sort option.
-
keep in the url the current selected sort