Skip to content

VisionistInc/livedb-elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

livedb-elasticsearch

An Elasticsearch adapter for livedb.

Installation

npm install --save VisionistInc/livedb-elasticsearch

Example usage

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

Elasticsearch 1.4+ is required. Documents will be stored at the following locations:

Snapshots route

snapshot/{cName}/{docName}

Operations route

/ops-{cName}/{docName}/{version}

Testing

Assuming elasticsearch is running at localhost:9200, run npm test.

Limitations

Currently, does not implement the Query support API.

About

An Elasticsearch adapter for livedb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors