<@U01PL2YSG8L> <@U02UEA69DB9> I checked filter ope...
# community-help
r
@Kishore Nallan @Kishore S I checked filter operators in filter operators page. link: https://typesense.org/docs/0.22.2/api/documents.html#search-parameters I don't see contains, doesn't contains filter operators there. Does typesense support that? I also couldn't find all the supported operators in filter by in docs. can you share the link?
k
Can you elaborate what you mean by contains with an example?
All the filter operators are explained in the description of the
filter_by
parameter here: https://typesense.org/docs/0.22.2/api/documents.html#search-parameters
r
eg: I need to find a book of Chetan Bhagat. filter_byauthor name=chetan bhagat above filter by query works for exact match But for following query filter_byauthor name=chet it doesn't work because the operator (:=) exact match but i want operator contains/like
k
filter_by=author_name:chetan
Will work, just don't add the
=
The documentation mentions this, maybe we should make it clearer:
To match a string field exactly, you can use the 
:=
 operator. For eg: 
category:= Shoe
 will match documents from the category shoes and not from a category like 
shoe rack
.
Oh wait, actually you want a fuzzy match in filtering?
r
yes
k
filter_by=author_name:chetan
will do a contains of the field so "Chetan Bhagat" will match. It's not possible to do fuzzy filtering. For that you need to use the
q
parameter.
Filtering is meant to precisely apply a set of conditions on your primary search query.
r
ilter_by=author_name:chetan
 will do a contains of the field so "Chetan Bhagat" will match. no it doesn't work in my case
k
Can you please post a reproduceable example that I can try with?
r
https://books-search.typesense.org/ in this book search example. can you try filter_by=author_name:Dale and can you check you check in your result whehter books with author name name Dale carnegie appears or not ?
k
In the UI?
r
sorry not in UI
can you try from postman
i'm not sure about that
k
Please post a curl query for me to try with. That's the best and precise way for us to see the same problem.
r
ok