What did you do? ================ 1. Opened the search page at https://developer.mozilla.org/en-US/search 2. Typed getIntPref (part of nsIPrefBranch XPCOM interface) 3. Clicked all the default-enabled filter checkboxes, trying to disable all filters What happened? ============== As soon as I click the last one, they all automatically get re-checked. And there's no "no filters" option. What should have happened? ========================== There needs to be a way to do an unfiltered search, and there isn't one. This makes it impossible to find pages if you're not aware of the right tags or filters to apply. Is there anything else we should know? ======================================
Unfiltered search was the default until recently. See https://bugzilla.mozilla.org/show_bug.cgi?id=1261274#c2 for details, and a pro tip for unfiltered search. It will require dev work to add the UI element + backend changes for unfiltered search, about a day.
See Also: → bug 1261274
Sounds like we can work around this with some front-end work. Two things we discussed in the triage meeting: 1) add &topic=none to template search links 2) add an option to the search filters in the right column for topic=none The "none" topic does not actually exist. This is a work around for the fact that if you do not include a topic the default topics get applied. These changes may not be a permanent solution.
From a UX perspective, simply adding a "Search all" checkbox which applies the &topic=none (or &topic=DoozyMcFlarnyFoo, to avoid potential tag conflicts later).
Let's go with #1 for now.
Just to recap, what we want is: - at the top of the search column on the right side bar, either immediately above or immediately below "topics" - a check box with the label "all topics" Potential avenues for exploration are: - client-side -- when checked it: removes all other topics, adds topic=none and performs a new search -- appears checked if topic=none is the *only* topic in the query string - server-side -- alter the search filter admin pannel to allow creation of a filter that does we want -- this is not as simple as creating a filter and adding all tags to the tags field, since not all documents on MDN have tags :/  https://developer-local.allizom.org/admin/search/filter/add/
Information about setting up search on local dev environment: https://kuma.readthedocs.io/en/latest/elasticsearch.html
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/2b60f33632363cde1471d3501869db662a8ca887 bug 1262541 - Add an 'All Topics' filter that allows user to search all topics. Clear out that value when other topics are selected via js. Add a filter test. https://github.com/mozilla/kuma/commit/025fdd0529be7593908624cbf0459852a073dcf2 bug 1262541 - Add localization to All Topics filter, remove legend style to reduce size. https://github.com/mozilla/kuma/commit/92ec2a86b53627b6d61563878f6b5602f3627832 bug 1262541 - Append to active_facets only if filter_tags has value. https://github.com/mozilla/kuma/commit/870a8d9e4c168fcbf34120712e8935898c19ee53 Merge pull request #3915 from caktus/1262541-disable-filters-search bug 1262541 - Add an "All Topics" filter that will clear out checkboxes on search page
Fix is in staging and production. A new checkbox "All Topics" is available above the Topics list, that does not filter results by topic.
Assignee: shobson → emullaney
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.