I have an exposed field in a Views table which I can easily search for one word, e.g. Ford. However I am unable to search multiple terms (e.g. Ford AND Toyota, or 'Ford, Toyota', etc.)

How can I perform AND searches for a field using Views? The ability to paste a list of terms separated on different lines would be perfect!

Comments

PrabhuG’s picture

Hi, if you enable the option "Expose this filter to visitors, to allow them to change it " then you will see the option for "Allow multiple selections (Enable to allow users to select multiple items)". Which enable to select multiple items ( Note: i've checked only for list term and not for any other field eg: taxonomy)

And i don't about how to perform AND or OR searches in same filed. But you have multiple expose filter of same term or field in "Filter Criteria" and you can AND or OR them as you like(This can be performed by just clicking "rearrange" button near to "Filter Criteria" in views page".)

ck9’s picture

Thanks for the reply. I actually could not find a way to perform AND search on an exposed textfield in Views. I resorted to creating a taxonomy instead and replaced the original field with a taxonomy term field. The autocomplete option allows AND searches of taxonomy terms. This is a pretty simple feature which views should provide.