Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 579 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 579 Bytes

Searchkit Express

Example of using Searchkit with Express.js to proxy frontend search requests to Elasticsearch.

Setup

  1. Install dependencies
npm install
  1. Update the Searchkit configuration in index.js with the connection and search_settings for your search experience.

  2. Start server. This will start the server on port 3000.

npm start
  1. Update the url in @searchkit/instantsearch-client configuration to point to the server
const searchClient = SearchkitInstantSearchClient({
  url: "http://localhost:3000/api/search"
})