Repository navigation
Web: Language selector for search results #4
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Activity
- changed the title
[-]Language selector for search results[/-][+]Web: Language selector for search results[/+]on Dec 4, 2020 All search results pages (including Newest Pages) now have a Filters button in the same position in the top left, and a Sort by dropdown in top right (where they were already on the Browse Sites page).
Filters for search results, and Newest pages, are:
- Category.
- In web feed (see Indexing: Add new field to indicate if a page is included in a web feed #71 ).
- Language. There are 20 distinct languages currently set on home pages, so the limit has been set at 20.
Note that data quality issues limit the usefulness of Filters and Sort by:
- Selecting a filter will make results that don't have a value for that filter disappear, e.g. 29% pages don't have a language set, most of those might be in English, but if you select the en filter those results will no longer appear.
- Selecting an order for a sparsely populated field like published date won't make results without a published date disappear, but will mean that the majority which don't have a value for that field will appear at the end in no specific order.
Current stats are:
- 71% of pages have a language set.
- 49% have a last modified date.
- 14% have a published date.
- As per comment in Search: Change Newest Pages to Newest Posts, comprising only pages which appear in a web feed #74 it won't be until 10 Dec that the value is fully populated, so it is too early to tell what percentage of pages have it set. But the in-web-feed filter is unlikely to be as useful as hoped because of some of the issues with web feeds described in Indexing: Crawl from web feed (RSS/Atom) #54 and Indexing: Improve heuristics for guessing the primary web feed #77 (e.g. missing/incorrect headers, difficulty picking from multiple feeds including noisy ones like for tags, feeds greater than the 2Mb file size limit, feeds not being reached before the indexing page limit, etc.).
- added a commit that references this issue
on Aug 13, 2023
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
For the Search and the Newest Pages functions, all results are shown irrespective of language (for Browse there is a language filter). It would be good to have a language selector on the Search and Newest Pages so that users could only show results in the specified language.
Not sure if there are any HTTP headers that could be used to set sensible defaults (e.g. not sure how widely use Accept-Language is).
Given the privacy policy, probably don't want to remember a user's setting this with a cookie.