Searchkit Express
A thin library to create an express to elasticsearch proxy to support the searchkit ui framework
npm install searchkit-express --save
var SearchkitExpress =
Add _search, _msearch endpoints to root url
if you just want to create a proxy to the root express url then use the SearchkitExpress
function directly like this
var app = //...
then in your Clientside UI code
const searchkit = "/"
Alternative express router
If you wish to get hold of an express.Router
instance so you can configure the suburl and add specific express middleware; use as follows
var app = //... var searchkitRouter = SearchkitExpressapp
then in your Clientside UI code
const searchkit = "/movies-search"
Debugging
To enable debugging, enable debugging by setting environment variable when starting your server.
DEBUG=SearchkitExpress node server.js