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

Support archive

Low Search & Categories

Micah Kohne 3 Jun 2018 15:56 problem, complete

Hello - I'm working with Low Search and having some trouble getting it to work correctly when filtering by category. I'm using the following to show all results from collections with the exception of entries that are assigned the category "16".

{exp:low_search:results query="{segment_3}" limit="20" keywords:inflect="yes" category="not 16" status="open"}

This works, it filters out all entries assigned "16". However, it also won't show any entries that don't have any categories assigned. For example, I have a channel without any categories associated with it - none of these results are returned. But, if I assign some random category to it, it will return the results.

Likely something easy that I'm missing - I'd appreciate any insight. Thanks.

Replies

  1. Low 4 Jun 2018 07:00

    What version of EE and LS are you using?

  2. Micah Kohne 4 Jun 2018 13:52

    EE 4.3.1, LS 6.1.2

  3. Low 4 Jun 2018 19:09

    Can you try this: open up /filters/categories/lsf.categories.php and look up line 16, which reads

    private $_pfx = 'category';


    ...and change that to

    private $_pfx = 'category:';


    ...does that help?

  4. Micah Kohne 4 Jun 2018 20:54

    Yep - that did it. Appreciate the help.