Преглед изворни кода

revive search.getInfo for healthcheck

Yuki Takei пре 7 година
родитељ
комит
d9a927ad6e
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      src/server/util/search.js

+ 4 - 0
src/server/util/search.js

@@ -55,6 +55,10 @@ function SearchClient(crowi, esUri) {
   this.mappingFile = crowi.resourceDir + 'search/mappings.json';
   this.mappingFile = crowi.resourceDir + 'search/mappings.json';
 }
 }
 
 
+SearchClient.prototype.getInfo = function() {
+  return this.client.info({});
+};
+
 SearchClient.prototype.checkESVersion = async function() {
 SearchClient.prototype.checkESVersion = async function() {
   try {
   try {
     const nodes = await this.client.nodes.info();
     const nodes = await this.client.nodes.info();