Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
searchkit-express
Advanced tools
A thin library to create an express to elasticsearch proxy to support the searchkit ui framework
A thin library to create an express to elasticsearch proxy to support the searchkit ui framework
npm install searchkit-express --save
var SearchkitExpress = require("searchkit-express")
if you just want to create a proxy to the root express url then use the SearchkitExpress
function directly like this
var app = express()
//...
SearchkitExpress({
host:process.env.ELASTIC_URL || "http://localhost:9200",
index:'movies',
queryProcessor:function(query, req, res){
//do neccessery permissions, prefilters to query object
//then return it
return query
}
}, app)
then in your Clientside UI code
const searchkit = new SearchkitManager("/")
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 = express()
//...
var searchkitRouter = SearchkitExpress.createRouter({
host:process.env.ELASTIC_URL || "http://localhost:9200",
index:'movies',
maxSockets:500, // defaults to 1000
queryProcessor:function(query, req, res){
console.log(query)
return query
}
})
app.use("/movie-search", searchkitRouter)
then in your Clientside UI code
const searchkit = new SearchkitManager("/movies-search")
To enable debugging, enable debugging by setting environment variable when starting your server.
DEBUG=SearchkitExpress node server.js
FAQs
A thin library to create an express to elasticsearch proxy to support the searchkit ui framework
The npm package searchkit-express receives a total of 11 weekly downloads. As such, searchkit-express popularity was classified as not popular.
We found that searchkit-express demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.