rx-elasticsearch
Version:
RxJS Observables for the Elasticsearch client
25 lines • 879 B
JavaScript
;
var Scroll_1 = require('./src/Scroll');
var Search_1 = require('./src/Search');
var elasticsearch = require('elasticsearch');
var RxClient = (function () {
function RxClient(client) {
this.client = client;
}
RxClient.create = function (config) {
return this.constructor(new elasticsearch.Client(config));
};
RxClient.prototype.scroll = function (params) {
return Scroll_1.Scroll.scroll(params, this.client);
};
RxClient.prototype.search = function (params) {
return Search_1.Search.search(params, this.client);
};
RxClient.prototype.getClient = function () {
return this.client;
};
return RxClient;
}());
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = RxClient;
//# sourceMappingURL=/Users/ralph/IdeaProjects/enhanced-elasticsearch/RxClient.js.map