Is there a way to an exclusion in the filter_by ? ...
# community-help
r
Is there a way to an exclusion in the filter_by ? right now I can do
field:=value
can I do something like
field:!=value
?
k
Available in RC build. Currently supporting the exclusion operator (-) on only string facets. Usage: filter_by=author:- JK Rowling (excludes a single value) filter_by=author:- [JK Rowling, Enid Blyton] (excludes both authors) If you want to include some and exclude others you can have two filter_by clauses separated by && e.g. filter_by=author:- [JK Rowling, Enid Blyton] && author: [JRR Tolkien, John Grisham, George Martin]
r
@Kishore Nallan awesome. thanks! Do you mind also pointing to me the source for this? the cpp file.
r
thanks 🙂