It seems like filters only match whole words in te...
# community-help
d
It seems like filters only match whole words in text fields. Is there any way to get them to do "contains"? Or, alternatively, is there a way to have a single query that looks for different things in different fields: paragraph contains 'wombat' and title contains marsu?
j
Typesense has a way to do partial word matched in filter_by, by using
:
instead of
:=
So for eg: If you use do
filter_by: paragraph:wombat && title:marsupial
that will get all documents which contain wombat in paragraph as a full word and marsupial as a full word in title
There’s no way to do partial word matches (prefix matches) in filter_by
Also, filter_by is the only way we can do structured searches and say which terms needs to exist in which specific field
d
thanks for the quick reply.
👍 1