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:
- installed the module Views filters populate.
- 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.
- created a filter "Global: populate filters", added the two fields into this and exposed it.