waterline-elasticsearch
Provides easy access to elasticsearch
from Sails.js & Waterline.
Installation
To install this adapter, run:
$ npm install waterline-elasticsearch
Configuration
var orm = ; var config = adapters: elasticsearch: connections: myLocalElasticsearch: adapter: 'elasticsearch' host: 'localhost' port: 9200 log: 'warning' index: '<index to use>' ;
Usage
var { console; var obj = WaterlineCollection; orm;} ; orm; appmodelsnote;
This adapter exposes the following methods:
find()
- Status
- Done
findOne()
- Status
- Done
create()
- Status
- Done
update()
- Status
- Done
destroy()
- Status
- Done