Search for multiple fields with views exposed filter

The other day I had to make a view with a search bar in the header of the page.
This search option should be able to search in multiple fields but have only 1 search bar.

So this is what I did:
 

  1. installed the module Views filters populate.
  2. added two filters "First Name" and "Last Name" (both must not be exposed) and added them to a OR filter group (Views 3 supports this). I had to use the operator "Contains any word" for both fields, otherwise the query gave me no desired result.
  3. created a filter "Global: populate filters", added the two fields into this and exposed it.

 

Add new comment