File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,14 @@ when all the data has been written and flushed to Elasticsearch.
36
36
Listening to ` finish ` does not mean much really as we are in this situation:
37
37
https://github.com/joyent/node/issues/5315#issuecomment-16670354
38
38
39
+ For example to close the ES client as soon as we are done:
40
+
41
+ ```
42
+ ws.on('close', function () {
43
+ client.close();
44
+ });
45
+ ```
46
+
39
47
## Stream search results from Elasticsearch
40
48
```
41
49
var ReadableSearch = require('elasticsearch-streams').ReadableSearch;
@@ -141,7 +149,7 @@ rs.pipe(ts).pipe(ws).on('finish', onFinish);
141
149
# LICENSE
142
150
elasticsearch-streams is freely distributable under the terms of the MIT license.
143
151
144
- Copyright (c) 2014 Sutoiku, Inc.
152
+ Copyright (c) 2015 Sutoiku, Inc.
145
153
146
154
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
147
155
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
You can’t perform that action at this time.
0 commit comments