React Instant Search: Use searchState to perform a query on the server

Hello,
I have a node js / react app. We’d like to allow users to save searches and then alert when a new item matches that search.

Right now we are saving the json searchState produced by onSearchStateChanged in our db to restore the saved searches. Now, we need a server side job that can perform these searches against our Algolia index.

So, I am wondering if there is a library or utility that can take the searchState produced by React InstantSearch and programmatically query our index returning the results as JSON.

1 Like