indices.clearCache

edit
client.indices.clearCache({
  index: string | string[],
  field_data: boolean,
  fielddata: boolean,
  fields: string | string[],
  query: boolean,
  ignore_unavailable: boolean,
  allow_no_indices: boolean,
  expand_wildcards: 'open' | 'closed' | 'none' | 'all',
  index: string | string[],
  request_cache: boolean,
  request: boolean
})

Reference

index

string | string[] - A comma-separated list of index name to limit the operation

field_data or fieldData

boolean - Clear field data. This is deprecated. Prefer fielddata.

fielddata

boolean - Clear field data

fields

string | string[] - A comma-separated list of fields to clear when using the fielddata parameter (default: all)

query

boolean - Clear query caches

ignore_unavailable or ignoreUnavailable

boolean - Whether specified concrete indices should be ignored when unavailable (missing or closed)

allow_no_indices or allowNoIndices

boolean - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes _all string or when no indices have been specified)

expand_wildcards or expandWildcards

'open' | 'closed' | 'none' | 'all' - Whether to expand wildcard expression to concrete indices that are open, closed or both.
Default: open

index

string | string[] - A comma-separated list of index name to limit the operation

request_cache or requestCache

boolean - Clear request cache

request

boolean - Clear request cache