Search negative keyword
Hi Low!
I am imagining how to show search result with negative keyword.
Ex: I have 5 entries title
- Entry 1: Title ..... by John
- Entry 2: Title ..... by Mark
- Entry 3: Title ..... by Lisa
- Entry 4: Title ..... by John
- Entry 5: Title ..... by Mark
Above list, 2 entries (1 + 4) have keyword "John", and I want showing 3 remaining entries.
I want have something like that:
{exp:low_search:results negative_keywords="John" ... ... ...}
{title}
{/exp:low_search:results}
Thank!
Replies
Low 29 Aug 2014 08:48
You could achieve this by using search_mode="auto", see http://gotolow.com/addons/low-search/docs/filters#search-mode-auto
ngoncom 2 Sep 2014 10:39
I using search_mode="auto" only showing entries by "John", not showing entries by another!
Low 2 Sep 2014 10:45
If your search_mode is "auto" then searching for "-john" should give you entries without the keyword "john".
ngoncom 2 Sep 2014 15:40
Oh la la!
"-john" is the trick, thank master!