Multi-word Search in React Instantsearch

TLDR Gines was facing issues with multi-word searches in React Instantsearch. Kishore Nallan suggested using a multi_search request and merging the results client-side.

Powered by Struct AI
Join the chat
Sep 28, 2022 (15 months ago)
Photo of md5-7d463c0d7894ed9aa348f9842f6bc7b5
07:53 AM
Hi, I am having somes problems to perform a functionality in my application...

I need to search for several words at the same time, is this possible? (I am using react instantsearch)

For example: if I search for "php" I get 15 results, and if I search for "games" I get 10 results, but if I search for "games php" I only get 1 result, when what I want is to get the sum of both results. Thanks!
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:33 AM
You can use a multi_search request to run the queries at the same time. But you have to merge the results in the client side.