indices.upgrade

edit

indices.upgrade

edit
client.indices.upgrade([params, [callback]])

Check the API Conventions and the elasticsearch docs for more information pertaining to this method.

Params

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)

[expandWildcards=open]

String — Whether to expand wildcard expression to concrete indices that are open, closed or both.

Options
  • "open"
  • "closed"
  • "none"
  • "all"

ignoreUnavailable

Boolean — Whether specified concrete indices should be ignored when unavailable (missing or closed)

waitForCompletion

Boolean — Specify whether the request should block until the all segments are upgraded (default: false)

onlyAncientSegments

Boolean — If true, only ancient (an older Lucene major release) segments will be upgraded

index

String, String[], Boolean — A comma-separated list of index names; use _all or empty string to perform the operation on all indices

body

Object, JSON — An optional request body, as either JSON or a JSON serializable object. See the elasticsearch docs for details about what can be specified here.

back to top