How to filter results by more than one value for a single custom field
Hi Low,
I have a custom field named cf_schemes_year.
I'm trying to filter the results of a search (for a single collection) so that entries with a cf_schemes_year value of 2015 or 2014 don't appear in the results at all.
When I specify a single value, it works fine. But when I try to enter two values, the filter doesn't work and I get results that contain any value for this field. Any ideas what I'm doing wrong here? I'm using EE 2.7.2 and Low Search 4.1.1.
So this works fine:
{exp:low_search:results collection="ls_schemes" limit="100" paginate="both" disable="categories|category_fields|member_data" search:cf_schemes_year="not 2015"}
But this only filters entries to those with a value of 2014:
{exp:low_search:results collection="ls_schemes" limit="100" paginate="both" disable="categories|category_fields|member_data" search:cf_schemes_year="=not 2015|2014"}
Thanks,
Stephen
Replies
Low 1 Apr 2015 16:54
Try this:
Stephen 2 Apr 2015 09:40
Worked a treat, thanks Low! :-)