We have recently introduced an innovative /filter route, enabling more sophisticated filtering of the topics list. Significantly, this marks the initial step towards a unified topic filtering language for both search and filtering. Additionally, the dedicated route for topic list filtering enhances the customizability of the sidebar, as users can now incorporate links as custom section links within the sidebar.
How to turn it on
experimental_topics_filter site settings in the admin interface.
How it works
The /filter has an input field which users can input a query string to filter through the list of topics.
As an example, category:documentation tag:how-to+email will filter for topics that are in the documentation category tagged with both how-to and email.
Currently this is the list of filters that are supported:
status:opentopics that are not closed or archived
status:closedtopics that are closed
status:publictopics that are not read restricted (eg: belong to a secure category)
status:archivedtopics that are archived
status:unlistedtopics that are not visible
status:listedtopics that are visible
in:pinnedtopics that are are pinned (either global or per category pins)
in:watchingstuff I am watching - supports (
watching_first_post): allow for filtering down to stuff your are tracking, watching etc. - multiple values can be comma separated
in:bookmarkedstuff I’ve bookmarked
category:bugtopics in the bug category AND all subcategories
=category:bugtopics in the bug category excluding subcategories
category:documentation:adminstopics in the admins subcategory of documentation
category:bug,featuretopics in the bug or feature category including all subcategories
=category:bug,featuretopics in the bug or feature category excluding all subcategories
-category:bug,featureexcluding topics in the bug or feature category including all subcategories
-=category:bug,featureexcluding topics in the bug or feature category only excluding all subcategories
tag:bug+featuretopics tagged both bug and feature
tag:bug,featuretopics tagged either bug or feature
-tag:bug+featureexcluding topics tagged bug and feature
-tag:bug,featureexcluding topics tagged bug or feature
created-by:@USERNAMEtopics created by a specific user
posts-min:Xtopics with X or more amount of posts
posts-max:Xtopics with no more than max posts
posters-min:Xtopics where at least X different users have posted
posters-max:Xtopics where at most X different users have posted
likes-min:Xtopics with X or more number of likes
likes-max:Xtopics with no more than X number of likes
likes-op-min:Xtopics with first post that has X or more number of likes
likes-op-max:Xtopics with first post that has no more than X number of likes
views-min:Xtopics with X or more number of views
views-max:Xtopics with no more than X number of views
activity-before:YYYY-MM-DDtopics with latest bump before specified date
activity-after:YYYY-MM-DDtopicslatest bump after specified date
created-before:YYYY-MM-DDcreated before specified date
created-after:YYYY-MM-DDcreated after specified date
latest-post-before:YYYY-MM-DDlatest post created before specified date
latest-post-after:YYYY-MM-DDlatest post created after specified date
order:activityorder by bump date desc
order:latest-postorder by latest post creation desc
order:createdorder by topic creation desc
order:viewsorder by topic views desc
order:likesorder by number of likes in the topic desc
order:likes-oporder by number of likes in the first post of each topic desc
order:postersorder by number of people who have posted desc
order:categoryorder by category name
order:ANY-ascflip order on results so it is ascending
We would love to find out from the community here if this feature will be valuable for your own community and would also like to know how you’re using it.
If there are any filters that you feel like will help you with your needs, do let us know as with with examples of what you are trying to do.
Finally, we want to highlight that this is a very early version of the feature and it is still considered experimental at this point. The user experience needs improvement and we are currently working on adding some sort of inline autocomplete or even an interface to allow users to build out a topics filtering query language without having to remember all the filters by heart.