
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
adonis-elasticsearch
Advanced tools
Elasticsearch Service Provider for Adonis with additional features
This service provider makes it easier to integrate and to work with the official Elasticsearch client library for Node.js
It is built on top of @elastic/elasticsearch and proxies all the methods keeping them 100% original. So you can follow official Elasticsearch API reference.
npm install adonis-elasticsearch
Make sure you set the ES_URL
environment variable in your .env file. This will be used to access your Elasticsearch server.
ES_URL=http://localhost:9200
Make sure to register the provider inside start/app.js
file.
const providers = [
// ...
"adonis-elasticsearch/providers/ElasticProvider",
];
That's all! Now you can use the provider by pulling it from IoC container
const Elastic = use("Elastic");
const response = await Elastic.search({
index: "my-index",
body: {
query: {
match_all: {},
},
},
});
The Elastic.paginate()
helper will paginate the results and return the same payload as Lucid's pagination method.
const Elastic = use("Elastic");
const response = await Elastic.search({
index: "my-index",
body: {
query: {
match_all: {},
},
},
});
return Elastic.paginate(response);
You are more than welcome to contribute to Vue Flags. Just submit changes via pull request and I will review them before merging.
Fork it! 🤙
Create your feature branch: git checkout -b my-new-feature
Commit your changes: git commit -am "Add some feature"
Push to the branch: git push origin my-new-feature
Submit a pull request 👍
The documentation is available in the docs
folder. The Vue Flags components are available in the lib
folder.
The Adonis Elasticsearch Service Provider is MIT licensed.
FAQs
Elasticsearch Service Provider for Adonis with additional features
The npm package adonis-elasticsearch receives a total of 7 weekly downloads. As such, adonis-elasticsearch popularity was classified as not popular.
We found that adonis-elasticsearch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.