#community-help

Discussing Complicated Queries with Typesense Q Param

TLDR Jainil asked about complex queries in Typesense 'q' parameter. Jason clarified it doesn't support boolean operators and referred to an open feature request.

Powered by Struct AI

1

1

4
3w
Solved
Join the chat
Sep 08, 2023 (3 weeks ago)
Jainil
Photo of md5-bea1e4531665b4608c47d00462429d3a
Jainil
06:07 PM
Is it possible to do more complicated queries using the q param? I see negation, and I think quoted searches work too, but can we specify booleans (OR/AND) between query terms? And what about parenthetical searches? Looking to replicate a search experience similar to LI

1

Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:19 PM
Typesense doesn't support boolean operators in the q parameter - only in the filter_by parameter. But the filter_by parameter doesn't support typo tolerance and partial word searches

But there's an open feature request here: https://github.com/typesense/typesense/issues/1155

Could you upvote it / add your use-case to it?
Jainil
Photo of md5-bea1e4531665b4608c47d00462429d3a
Jainil
06:20 PM
Totally
06:20
Jainil
06:20 PM
Thanks!

1