waterline-es
v0.1.0
Published
ElasticSearch adapter for Sails / Waterline
Downloads
3
Readme
ElasticSearch
Waterline adapter for ElasticSearch.
This is a rough implementation, so PRs are welcome. We're using it on several of our projects, and we'll be making fixes and updates as needed, but raising issues will help us harden this implementation.
Installation
Install from NPM.
$ npm install waterline-es --save
Waterline Configuration
Add the elasticSearch config to the config/adapters.js
file.
Using with Waterline v0.10.x
import waterline from 'waterline';
import elasticSearchAdapter from 'waterline-es';
var config = {
adapters: {
elasticsearch: elasticSearchAdapter
},
connections: {
elasticSearch: {
adapter: 'elasticsearch',
connectionParams: {
loginUrl: 'https://localhost:9200'
}
}
}
};
waterline.initialize(config, function (err, ontology) {
});