Skip to content

Commit

Permalink
Expose callWithRequestFactory and plugins option so that plugins can …
Browse files Browse the repository at this point in the history
…use es client plugins with callWithRequest
  • Loading branch information
lukasolson committed Jan 14, 2016
1 parent 9661bc3 commit 5be3400
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/elasticsearch/lib/expose_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module.exports = function (server) {
return new elasticsearch.Client({
host: url.format(uri),
ssl: ssl,
plugins: options.plugins,
apiVersion: options.apiVersion,
keepAlive: options.keepAlive,
log: function () {
Expand All @@ -66,6 +67,7 @@ module.exports = function (server) {

server.expose('client', client);
server.expose('createClient', createClient);
server.expose('callWithRequestFactory', callWithRequest);
server.expose('callWithRequest', callWithRequest(noAuthClient));
server.expose('errors', elasticsearch.errors);

Expand Down

0 comments on commit 5be3400

Please sign in to comment.