Skip to content

Add Elasticsearch db support#59

Merged
adrai merged 22 commits intothenativeweb:masterfrom
zoover:elasticsearch
Feb 1, 2016
Merged

Add Elasticsearch db support#59
adrai merged 22 commits intothenativeweb:masterfrom
zoover:elasticsearch

Conversation

@gerbenmeyer
Copy link
Copy Markdown
Contributor

Elasticsearch can now be used as the storage of the event store:

var es = require('eventstore')({
  type: 'elasticsearch',
  host: 'localhost:9200',
  indexName: 'eventstore',
  eventsTypeName: 'events',
  snapshotsTypeName: 'snapshots',
  log: 'warning',
  maxSearchResults: 10000
});

Note that the maxSearchResults setting here is used when all (limit -1) events are retrieved. This is because Elasticsearch doesn't support retrieving an unlimited amount of results.

@adrai
Copy link
Copy Markdown
Contributor

adrai commented Feb 1, 2016

wow

@adrai
Copy link
Copy Markdown
Contributor

adrai commented Feb 1, 2016

adrai added a commit that referenced this pull request Feb 1, 2016
Add Elasticsearch db support
@adrai adrai merged commit 4355f83 into thenativeweb:master Feb 1, 2016
@gerbenmeyer gerbenmeyer deleted the elasticsearch branch February 1, 2016 12:21
@gerbenmeyer
Copy link
Copy Markdown
Contributor Author

I'll think about it :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants