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.

CommentFileSizeAuthor
#5 search_type_dropdown-2192117-5.patch1.56 KBjaperry
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mariusm’s picture

Same error in 3.9

japerry’s picture

Title: Search for users not clear » Search type dropdown should be the last selected option instead of default.
Version: 7.x-3.8 » 7.x-3.x-dev

Renamed 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.

lsolesen’s picture

@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.

lsolesen’s picture

To 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.

japerry’s picture

Status: Active » Needs review
FileSize
1.56 KB

This 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.

lsolesen’s picture

@japerry. Seems to work as expected. Only thing is that it is not searching in first and last name from the profile?

japerry’s picture

Core 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.

  • Commit 29b0325 on 7.x-3.x by japerry:
    Issue #2192117 by japerry: Add core user search dropdown and default to...
japerry’s picture

Status: Needs review » Fixed

Fixed! Although there are other search issues, this specific issue is solved in 7.x-3.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.