Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I choose User in the search bar in the top. Then I search for a user, that I know exists. However, no results are returned - and it looks like the search has actually been for site content - and after the page reloads it says "Site" instead of "Users" in the search box in the top.
Comment | File | Size | Author |
---|---|---|---|
#5 | search_type_dropdown-2192117-5.patch | 1.56 KB | japerry |
Comments
Comment #1
mariusm CreditAttribution: mariusm commentedSame error in 3.9
Comment #2
japerryRenamed to be more clear. When searching for users (or anything other than 'Site'), the site will show up whenever you want to re-search. Really small but highly annoying issue.
Comment #3
lsolesen CreditAttribution: lsolesen commented@japerry There is the usability issue, but when choosing users in the search box nothing is ever returned even though the user is known to exist.
Comment #4
lsolesen CreditAttribution: lsolesen commentedTo actually search in users, user search has to be enabled here: admin/config/search/settings
And the user search does not search first and last name, which would be rather helpful for a search.
Comment #5
japerryThis should fix both the missing search option and the defaulting to 'site' instead of 'user' when using core search. Tested against both solr and core search and these options appear to work correctly.
Comment #6
lsolesen CreditAttribution: lsolesen commented@japerry. Seems to work as expected. Only thing is that it is not searching in first and last name from the profile?
Comment #7
japerryCore user search only does username and email searches, and with realname enabled many of the first and last names will be searchable (Because they're in the username).
Beyond that, we suggest people use solr for searching because its much more performant and feature rich.
Comment #9
japerryFixed! Although there are other search issues, this specific issue is solved in 7.x-3.x