Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

To my knowledge there hasn't been an option in drupal 7 to create a single exposed filter in a view which searches multiple fields, while in previous versions there existed modules to do just that.

Using the or operators is fine but then you get multiple fields in the form.

Add Global: Populate filters and you can have a single field but then the view never shows anything.

Is there any way or module that will make this work?

Edit: What I didn't notice was the field operators. For some reason the default operator for text fields in views is =, while a proper search function needs contains or has word. I've been looking for the reason I couldn't get it to work for almost 6 months now. Wow. What a pain. /facepalm

share|improve this question
1  
Much better answer here. This is core Views functionality... drupal.stackexchange.com/questions/73731 –  doublejosh May 31 '13 at 0:19

2 Answers 2

up vote 8 down vote accepted

Yes, you can have multiple fields search in a single exported filter using Global: Populate filters and Views filter populate module.

Check this answer.

share|improve this answer
    
I'm just going to mark this as the answer, but I thought I'd elaborate on what the actual problem turned out to be (I've been working on this for over 6 months, typical that I'd solve it myself less than half an hour after sticking it on stack) –  J V Nov 15 '12 at 9:33

I know this question has been answered already, but thought I'd chime in that there's another filter called "Search: Search terms" which basically emulates the Drupal node search and searches the whole node for the entered keywords. You can't select any fields to specifically search, and I'm not sure if it uses the "Search Index" view mode etc. But it works very well.

More info: http://drupal.org/node/680442

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.