Improve search behavior for member and group directories

This change allows for word-based matches instead of exact string matches only.
For example, the search string "American History" will now match "American Food
History".

See #961