#community-help

Clarification on `filter_by` Argument in Typesense Documentation

TLDR Gabe asked if filter_by in Typesense accepts OR arguments, which Jason confirmed. Gabe then suggested adding this clarification to the documents.

Powered by Struct AI

1

1

5
29mo
Solved
Join the chat
Jun 25, 2021 (29 months ago)
Gabe
Photo of md5-7aff1bf99393eb318e36513504a16e85
Gabe
08:47 PM
From the docs about filter_by:
> For eg: category:=Shoe will match documents from the category shoes and not from a category like shoe rack. You can also filter using multiple values: category:= [Shoe, Sneaker].
Is this an OR? i.e. it returns results that have either a category of "Shoe" or "Sneaker" (or both)?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:48 PM
This is an OR
Gabe
Photo of md5-7aff1bf99393eb318e36513504a16e85
Gabe
08:49 PM
cool that's what I figured. Might be worth adding to the docs though to make it clear
08:49
Gabe
08:49 PM
thanks!
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:51 PM
Oh just realized it’s not explicitly called out as an OR, will add that

1

1