Kyle Williams
08/23/2021, 8:13 PMadditionalSearchParameters
from TypesenseInstantsearchAdapter.configureation
and the search state from search.helper.state
.
Checking if there's a canonical / easier way 🙂 the backend is in Node fwiwKyle Williams
08/23/2021, 8:17 PMJason Bosco
08/23/2021, 10:53 PMJason Bosco
08/23/2021, 10:54 PMJason Bosco
08/23/2021, 10:54 PMKyle Williams
08/23/2021, 10:56 PMKyle Williams
09/13/2021, 9:30 PMsearch.getUiState
on the client and search.setUiState
on the server. But I couldn't figure out how to respond to a search request without setting an arbitrary timeout to wait for results (it's "instant" after all 🙂 )
The Algolia docs were helpful but use their API client on the server vs. the InstantSearch lib. It seems the TS client and Algolia client are not compatible.
For my use case I need to run and process the results on the server vs. passing back to the client (similar to export with full query).
For now, my searches are fairly straightforward so I'm just going to translate the instant search format to something the TS client can use on the serverJason Bosco
09/13/2021, 11:06 PMso I'm just going to translate the instant search format to something the TS client can use on the serverThis is what the InstantSearch adapter does, specifically this class: https://github.com/typesense/typesense-instantsearch-adapter/blob/0c9af2a2e0cec64b31bd5c3717f7289b5bbbe737/src/SearchRequestAdapter.js#L218 You might be able to use just that class, instead of the full adapter...
Kyle Williams
09/22/2021, 7:38 PMadditionalSearchParameters
and collectionSpecificSearchParameters
in addition to the instantSearchRequest
but was able to get the format the TS server needs. Thank you! 🙏Jason Bosco
09/22/2021, 7:59 PM