hello i am making a filter_by in my apiKey scope b...
# community-help
d
hello i am making a filter_by in my apiKey scope but i have to add an OR statement to that filter_by how should i do it?
j
@Danny Rivadeneira Is it an OR of values in a single field or across fields?
d
I want to filter by a value that can be in two fields of the same document for example personId can be in array1 or in array2
j
Typesense doesn't support ORs across multiple fields unfortunately, we plan to add it in the near future though
So you would have to split the query across two searches in a multi_search request
and use two separate
x-typesense-api-key
parameters in each search (as of v0.23.1), with just one condition per scoped api key / search
d
ok I will try that thank you very much
👍 1