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

Support archive

Low Search: Category exclusion problem...

Matts Härsing 30 Jan 2015 06:16 problem, rejected

I'm trying to exclude search results from certain categories but they get included anyway. I have tried using the "category" parameter, like this:

{exp:low_search:results query="{segment_2}" collection="web|utbildningar|static" category="not 26|27|28|29|30|37" limit="50" loose_ends="none" orderby="section" sort="asc" status="open" disable="category_fields|member_data|pagination"}

Entries belonging to the excluded categories show up in the results. Am I missing something?

Regards,
Matts

Replies

  1. Low 30 Jan 2015 08:16

    That's actually default EE behaviour. See their docs on the category parameter:

    If you are using exclusion (category="not 3|4") and an entry is in a category that is not excluded, the entry will be returned even if it also belongs to an excluded category.

  2. Matts Härsing 30 Jan 2015 08:27

    Yes, I noticed that in the docs as well. It seems these entries were in another category as well. Thanks.