code: @PreDestroy
      public void close() {
          if (node != null) {
              node.close();
          }
          if (client != null) {
              client.close();
              client = null;
          }
      }
docs: This method closes the Elasticsearch client.