An Elasticsearch adapter for livedb.
npm install --save VisionistInc/livedb-elasticsearch
var LiveElasticsearch = require('livedb-elasticsearch');
var liveES = new LiveElasticsearch({ host: 'localhost:9200' });
// with liveDB
var livedb = require('livedb');
var liveClient = livedb.client(liveES);
// with sharejs
var sharejs = require('share');
var share = sharejs.server.createClient({backend: liveClient});
Elasticsearch 1.4+ is required. Documents will be stored at the following locations:
snapshot/{cName}/{docName}
/ops-{cName}/{docName}/{version}
Assuming elasticsearch is running at localhost:9200
, run npm test
.
Currently, does not implement the Query support API.