exists: exists

Description Usage Arguments

Description

Returns a boolean indicating whether or not a given document exists.

Usage

1
2
3
4
5
6
7
8
9
exists(client, ...)

## S3 method for class 'elasticsearch'
exists(client, index, type = "_all", id,
  fields = NULL, source = TRUE, source_include = NULL, parent = NULL,
  source_exclude = NULL, realtime = TRUE, routing = NULL,
  preference = "random", refresh = FALSE, version = NULL,
  version_type = NULL, raw = FALSE, validate_params = TRUE,
  get.source = FALSE)

Arguments

index

String The name of the index

type

String The type of the document (use _all to fetch the first document matching the ID across all types)

id

String The document ID

fields

String, String[] A comma-separated list of fields to return in the response

source

String, String[], Logical True or false to return the _source field or not, or a list of fields to return

source_include

String, String[], Logical A list of fields to extract and return from the _source field

parent

String The ID of the parent document

source_exclude

String, String[], Logical A list of fields to exclude from the returned _source field

realtime

Logical Specify whether to perform the operation in realtime or search mode

routing

String Specific routing value

preference

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

refresh

Logical Refresh the shard containing the document before performing the operation

version

Number Explicit version number for concurrency control

version_type

String Specific version type


tomesch/elasticsearch documentation built on May 31, 2019, 6:11 p.m.