Example of using Searchkit with Express.js to proxy frontend search requests to Elasticsearch.
- Install dependencies
npm install
-
Update the Searchkit configuration in
index.jswith theconnectionandsearch_settingsfor your search experience. -
Start server. This will start the server on port 3000.
npm start
- Update the
urlin@searchkit/instantsearch-clientconfiguration to point to the server
const searchClient = SearchkitInstantSearchClient({
url: "http://localhost:3000/api/search"
})