Skip to content

Commit 0a3f0a6

Browse files
committed
Fix the examples
1 parent a693ddd commit 0a3f0a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Examples:
1111

1212
## Stream random records into Elasticsearch
1313
```
14+
var WritableBulk = require('elasticsearch-streams').WritableBulk;
1415
var client = new require('elasticsearch').Client();
1516
1617
var bulkExec = function(bulkCmds, callback) {
@@ -28,7 +29,7 @@ require('random-document-stream')(42).pipe(ws);
2829

2930
## Stream search results from Elasticsearch
3031
```
31-
var ReadableSearch = require('elasticsearch-streams')
32+
var ReadableSearch = require('elasticsearch-streams').ReadableSearch;
3233
var client = new require('elasticsearch').Client();
3334
3435
var search = {
@@ -59,7 +60,7 @@ rs.pipe(ws);
5960
* Search stream: access to total, aggregations etc
6061

6162
## Later
62-
Streaming http client
63+
Streaming http client or transport
6364

6465
# LICENSE
6566
elasticsearch-streams is freely distributable under the terms of the MIT license.

0 commit comments

Comments
 (0)