Browse Source

revive search.getInfo for healthcheck

Yuki Takei 7 years ago
parent
commit
d9a927ad6e
1 changed files with 4 additions and 0 deletions
  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';
 }
 
+SearchClient.prototype.getInfo = function() {
+  return this.client.info({});
+};
+
 SearchClient.prototype.checkESVersion = async function() {
   try {
     const nodes = await this.client.nodes.info();