code: @Deprecated
  	public static boolean isIndexExist(Client client, String index) {
  		return client.admin().indices().prepareExists(index).get().isExists();
  	}
docs: Check if an index already exists
  @param client Elasticsearch client
  @param index Index name
  @return true if index already exists