All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

search 2 category groups and / or

peter e 11 Jul 2018 15:03 question, complete

Can low search do the following?
entries have 2 category groups "Locations" & "Services"
I want to be able to search for multiple locations and multiple services and the results be in this logic:

New York OR Miami AND Service1 OR Service 2

Is this possible?

Replies

  1. Low 11 Jul 2018 18:27

    Yes.

    The thing to remember is that each parameter is combined with AND, while values in a parameter itself can be combined with OR.

    So, category:group1="1|2|3" category:group2="4|5|6" means (1 or 2 or 3) AND (4 or 5 or 6).

    See also this example.