Closed sangdth closed 8 months ago
My apologies, I forgot that the InstantSearch
is coming from Algolia, so the changes are super hard.
My apologies, I forgot that the
InstantSearch
are coming from Algolia, so the changes is super hard.
Yeah...
Btw, you might want to consider using the Index
widget in Instantsearch, if federated multi-index search is what you're looking to implement.
Here's an example: https://federated-search.typesense.org
You'll see the source code linked in the description.
Thank you @jasonbosco , I've checked the source code, look like the best way to archive my goal is to use at least one common name
field across collections.
Updated:
For future devs that hitting the wall with their heads like me:
<InstantSearch
future={{ preserveSharedStateOnUnmount: true }}
searchClient={searchClient}
>
<Configure hitsPerPage={5} />
<SearchBox />
<Index indexName="leads">
<Hits />
</Index>
<Index indexName="cases">
<Hits />
</Index>
</InstantSearch>
This way seems work.
May I ask, how can I use the
multi_search
withReactInstantSearch
? What is the properindexName
value? I see nowhere in the documentation.
Description
Currently our business requires a global search, which mean one query returns results from multiple collections.
And our nature of collections do not share any common query key, it looks like this:
so we can not use the Multi Search feature.
The current adapter only be used on single provider
InstantSearch
, so it will be so cumbersome, in our case it will look like:Suggestion
I think it would be better if we could have something like this:
then when we consume, it would just change: