create: create

Description Usage Arguments

Description

Adds a typed JSON document in a specific index, making it searchable. If a document with the same index, type, and id already exists, an error will occur.

Usage

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

## S3 method for class 'elasticsearch'
create(client, index, type, id, body,
  consistency = NULL, replication = "sync", version = NULL,
  version_type = NULL, routing = NULL, parent = NULL, timestamp = NULL,
  ttl = NULL, refresh = FALSE, timeout = "1m", raw = FALSE,
  validate_params = TRUE)

Arguments

client
index

String The name of the index

type

String The type of the document

id

String Document ID

body

Json The document

version

Number Explicit version number for concurrency control

routing

Date Explicit operation timeout

parent

String ID of the parent document

timestamp

Date Explicit timestamp for the document

ttl

Date Expiration time for the document

refresh

Logical Refresh the index after performing the operation

timeout

Date Explicit operation timeout

raw
versionType

String Specific version type

validate.params

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