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