Hi all - looking for some advice or pointers. I’m ...
# community-help
a
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
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
Thanks @Kishore Nallan 🙂
do you know of any examples of this being done that I could look at @Kishore Nallan?
j
@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.
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
a
Thanks @Jason Bosco I’ll look into it