Hi all - looking for some advice or pointers. I’m building a federated search and using the typesense instantsearch adapter but from what I can see in the documentation, the only way do do a multi-index search when using the instantsearch adapter is to have the results display separately for each index, is that correct? What I’d like is to have all my results from all indices show up as one search ‘result’ with the ability to filter/facet etc on the whole dataset - is this possible?
k
Kishore Nallan
03/21/2022, 12:13 PM
Typesense server API itself separates the multi search requests. For e.g. if you are querying 3 different collections, the results for each collection is returned separately. You will have to merge this on the front end using your business logic.
a
Ailish McCarthy
03/21/2022, 12:22 PM
Thanks @Kishore Nallan 🙂
Ailish McCarthy
03/21/2022, 12:27 PM
do you know of any examples of this being done that I could look at @Kishore Nallan?
j
Jason Bosco
03/21/2022, 1:40 PM
@Ailish McCarthy From what I can tell, I don't believe this is possible to do with instantsearch, or at least not out of the box. So you might need to build your own custom widgets to do a multi-search request to Typesense and then aggregate the text match scores on the client side.
Jason Bosco
03/21/2022, 1:41 PM
We don't have an example of a custom widget like this, but I'd recommend checking if you can find any in the instantsearch repo or forums