fix(core): update

This commit is contained in:
2019-11-02 01:42:03 +01:00
parent 20a41d3381
commit 2d1a5cdc50
4 changed files with 1154 additions and 648 deletions

View File

@ -35,7 +35,7 @@ export class ElasticSearch<T> {
*/
constructor(optionsArg: IElasticSearchConstructorOptions) {
this.client = new ElasticClient({
host: this.computeHostString(optionsArg)
host: this.computeHostString(optionsArg),
// log: 'trace'
});
this.indexPrefix = optionsArg.indexPrefix;
@ -56,6 +56,7 @@ export class ElasticSearch<T> {
} else {
hostString = `http://${hostString}`;
}
console.log(hostString);
return hostString;
}