elasticsearch-store / elasticsearch-client/client / Client
Class: Client
Constructors
new Client()
new Client(
client
,distributionMeta
):Client
Parameters
Parameter | Type |
---|---|
client | any |
distributionMeta | ClientMetadata |
Returns
Source
elasticsearch-store/src/elasticsearch-client/client.ts:8
Accessors
__meta
get
__meta():ClientMetadata
Returns
ClientMetadata
Source
elasticsearch-store/src/elasticsearch-client/client.ts:16
cat
get
cat():object
Returns
object
indices()
Parameters
Parameter | Type |
---|---|
params | CatIndicesParams |
Returns
Promise
<CatIndicesResponse
>
Source
elasticsearch-store/src/elasticsearch-client/client.ts:137
cluster
get
cluster():object
Returns
object
getSettings()
Parameters
Parameter | Type |
---|---|
params | ClusterGetSettingsParams |
Returns
Promise
<ClusterGetSettingsResponse
>
health()
Parameters
Parameter | Type |
---|---|
params | ClusterHealthParams |
Returns
Promise
<ClusterHealthResponse
>
Source
elasticsearch-store/src/elasticsearch-client/client.ts:103
indices
get
indices():object
Returns
object
create()
Creates a new index.
Parameters
Parameter | Type |
---|---|
params | IndicesCreateParams |
Returns
Promise
<IndicesCreateResponse
>
IndicesCreateResponse
delete()
Deletes one or more indices.
Parameters
Parameter | Type |
---|---|
params | IndicesDeleteParams |
Returns
Promise
<IndicesDeleteResponse
>
deleteTemplate()
Deletes index templates
Parameters
Parameter | Type |
---|---|
params | IndicesDeleteTemplateParams |
Returns
Promise
<IndicesDeleteTemplateResponse
>
IndicesDeleteTemplateResponse
exists()
Checks if a data stream, index, or alias exists.
Parameters
Parameter | Type |
---|---|
params | IndicesExistsParams |
Returns
Promise
<boolean
>
boolean
existsTemplate()
Returns true if template exists
Parameters
Parameter | Type |
---|---|
params | IndicesExistsTemplateParams |
Returns
Promise
<boolean
>
boolean
get()
Returns information about one or more indices
Parameters
Parameter | Type |
---|---|
params | IndicesGetParams |
Returns
Promise
<IndicesGetResponse
>
getFieldMapping()
Retrieves mapping definitions for one or more fields.
Parameters
Parameter | Type |
---|---|
params | IndicesGetFieldMappingParams |
Returns
Promise
<IndicesGetFieldMappingResponse
>
Response
IndicesGetFieldMappingResponse
getIndexTemplate()
Returns index template
Parameters
Parameter | Type |
---|---|
params | IndicesGetIndexTemplateParams |
Returns
Promise
<IndicesGetIndexTemplateResponse
>
IndicesGetIndexTemplateResponse not supported by elasticsearch version 6 same params as IndicesGetTemplateParams
getMapping()
Retrieves mapping definitions for one or more indices
Parameters
Parameter | Type |
---|---|
params | IndicesGetMappingParams |
Returns
Promise
<IndicesGetMappingResponse
>
IndicesGetMappingResponse
getSettings()
Returns setting information for one or more indices
Parameters
Parameter | Type |
---|---|
params | IndicesGetSettingsParams |
Returns
Promise
<IndicesGetSettingsResponse
>
IndicesGetSettingsResponse
getTemplate()
Returns template
Parameters
Parameter | Type |
---|---|
params | IndicesGetTemplateParams |
Returns
Promise
<IndicesGetTemplateResponse
>
template
putMapping()
Adds new fields to an existing index or edit the search settings of existing fields.
Parameters
Parameter | Type |
---|---|
params | IndicesPutMappingParams |
Returns
Promise
<IndicesPutMappingResponse
>
IndicesPutMappingResponse
putSettings()
Changes a dynamic index setting in real time.
Parameters
Parameter | Type |
---|---|
params | IndicesPutSettingsParams |
Returns
Promise
<IndicesPutSettingsResponse
>
IndicesPutSettingsResponse
putTemplate()
Uploads index mapping template
Parameters
Parameter | Type |
---|---|
params | IndicesPutTemplateParams |
Returns
Promise
<IndicesPutTemplateResponse
>
IndicesPutTemplateResponse
recovery()
Returns information about shard recoveries for one or more indices