instant search dome how to apply OR in typesense

290 Views Asked by At

i have following menu in my dashboard page main menu

and each main menu has some sub menus like this image when i click multiple main menu and sub menu type sense generate query like this to get results in api call filter_by: "cryptoScoreCoarse:=[Unacceptable,Caution] && cryptoScore:=[Broken]" now i want to make it use OR operator instead of &&,but i dont how can i do this? any idea or suggestion? thanks in advance,here is the screen shot of network tab when api call made network tab sceenshot

1

There are 1 best solutions below

0
On

You want to use the operator prop for the RefinementList widget to change the OR to an AND as described here.

<RefinementList
  // ...
  operator="and"
/>