Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Elasticsearch db support #59

Merged
merged 22 commits into from
Feb 1, 2016
Merged

Add Elasticsearch db support #59

merged 22 commits into from
Feb 1, 2016

Conversation

gerbenmeyer
Copy link
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
Contributor

adrai commented Feb 1, 2016

wow

@adrai
Copy link
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
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