Skip to main content

ElasticSearchClientWrapper.indexExists()

Home > @backstage/plugin-search-backend-module-elasticsearch > ElasticSearchClientWrapper > indexExists

Signature:

indexExists(options: {
index: string | string[];
}): import("@opensearch-project/opensearch/lib/Transport").TransportRequestPromise<import("@opensearch-project/opensearch").ApiResponse<boolean, unknown>> | import("@elastic/elasticsearch/lib/Transport").TransportRequestPromise<import("@elastic/elasticsearch").ApiResponse<boolean, unknown>>;

Parameters

Parameter

Type

Description

options

{ index: string | string[]; }

**Returns:**

import("@opensearch-project/opensearch/lib/Transport").TransportRequestPromise<import("@opensearch-project/opensearch").ApiResponse<boolean, unknown>> | import("@elastic/elasticsearch/lib/Transport").TransportRequestPromise<import("@elastic/elasticsearch").ApiResponse<boolean, unknown>>