#community-help

Query Language 'Or' Filtering Feature Discussion

TLDR Iulian asked for ‘or’ filtering in the query language with Typesense. Kishore Nallan informed it's targeted for the year end. Jason provided a temporary workaround.

Powered by Struct AI

1

1

6
26mo
Solved
Join the chat
Nov 04, 2021 (26 months ago)
Iulian
Photo of md5-790da83a2e75e1863cd6e991ddc09073
Iulian
03:44 PM
Hi! Is there an equivalent to the or filtering condition? I want to return documents that have either a property or another one and I couldn't find it in the docs. Thanks!
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
03:45 PM
👋 Currently it's only possible to do OR within a given field, like age: [20, 30, 40] but not across fields, but we have an issue open for that and it's an important one for us to address soon.
Iulian
Photo of md5-790da83a2e75e1863cd6e991ddc09073
Iulian
03:49 PM
Hi, thanks for the fast reply! Is there any ETA? Just so I know if I need to completely rethink my system or not. Thanks for this amazing product!
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
04:11 PM
We want to target by end of the year. It's a major feature and will require extending the query language to support ORing.

1

Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:15 PM
Iulian Here's a work-around in the meantime using multi_search: https://github.com/typesense/typesense/issues/281#issuecomment-948179523
Iulian
Photo of md5-790da83a2e75e1863cd6e991ddc09073
Iulian
06:27 PM
Thank you! That's really helpful!

1