countPercolate

edit
client.countPercolate({
  index: string,
  type: string,
  id: string,
  routing: string | string[],
  preference: string,
  ignore_unavailable: boolean,
  allow_no_indices: boolean,
  expand_wildcards: 'open' | 'closed' | 'none' | 'all',
  percolate_index: string,
  percolate_type: string,
  version: number,
  version_type: 'internal' | 'external' | 'external_gte' | 'force',
  body: object
})

Reference

index

string - The index of the document being count percolated.

type

string - The type of the document being count percolated.

id

string - Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster.

routing

string | string[] - A comma-separated list of specific routing values

preference

string - Specify the node or shard the operation should be performed on (default: random)

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

percolate_index or percolateIndex

string - The index to count percolate the document into. Defaults to index.

percolate_type or percolateType

string - The type to count percolate document into. Defaults to type.

version

number - Explicit version number for concurrency control

version_type or versionType

'internal' | 'external' | 'external_gte' | 'force' - Specific version type

body

object - The count percolator request definition using the percolate DSL