#1517 closed enhancement (fixed)
Set new default filters for searches
Reported by: | keesiemeijer | Owned by: | coffee2code |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | has-patch |
Cc: |
Description
As it is now all filters for searches are used by default on most pages. I don't know if there's any data for what filters are used most, but for my own searches I use the Functions and Hooks filters the most.
This means I have to uncheck Classes, Methods and sometimes Filters before I can do a search.
I propose we only set the Functions filter in the reference page itself and use the post type(s) used in the query for all other pages.
Attachments (3)
Change History (8)
#1
@
9 years ago
In patch 1517.1 the default checked filter for the search form is set to the Functions filter.
If post types are used in the current query the filters are checked correspondingly.
If no filters were used all post type filters are checked.
#2
@
9 years ago
After thinking about it more we should not set any filters by default. This means you search in all post types if no filters were checked. This has the benefit of refining your search by checking (instead of unchecking) the filters you want. If you set any filters for a search they should be checked on the results page also (even if you check all filters).
#3
@
9 years ago
- Owner set to coffee2code
- Resolution set to fixed
- Status changed from new to closed
In 2939:
#4
@
9 years ago
@keesiemeijer: I liked your revised approach. The only change between your patch and what I committed is that I did not default any of the post type filter checkboxes on the search form on pages other than the main search page.
I don't think it's reasonable to assume that if a visitor is looking at the docs for a specific function that if they use the slide-down search form that they necessarily are looking to search for just functions. Plus it's easy to overlook that the checkbox was automatically checked, making the search results not as comprehensive as expected.
For the search page, of course, if a visitor checked any of the post type filters and were viewing the results of the search, those filters remain checked.
Use post type "functions" in the reference page itself and use the post types from the query on all other pages