Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
hmalphettes committed Jul 2, 2014
1 parent 7020a55 commit a693ddd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ var bulkExec = function(bulkCmds, callback) {
}, callback);
};
var ws = new WritableBulk(bulkExec);
// stream 42 random records into ES
require('random-document-stream')(42).pipe(ws);
```

## Stream search results into Elasticsearch
## Stream search results from Elasticsearch
```
var ReadableSearch = require('elasticsearch-streams')
var client = new require('elasticsearch').Client();
Expand Down
2 changes: 1 addition & 1 deletion test/test-write.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('When writing', function() {
random(42).pipe(ws);
});
});
it('Must have indexed a 100 docs', function(done) {
it('Must have indexed 42 docs', function(done) {
client.indices.refresh({ index: 'myindex2' }, function() {
client.count({
index: 'myindex2',
Expand Down

0 comments on commit a693ddd

Please sign in to comment.