delete: delete

Description Usage Arguments Details References Examples

Description

Delete a typed JSON document from a specific index based on its id.

Usage

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

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

Arguments

index

String The name of the index

type

String The type of the document

id

String The document ID

version

Number Explicit version number for concurrency control

version_type

String Specific version type

routing

String Specific routing value

parent

String ID of parent document

replication

String Specific replication type

refresh

Logical Refresh the index after performing the operation

timeout

Date Explicit operation timeout

consistency

String Specific write consistency setting for the operation

Details

delete deletes a document from an index based on its id.

References

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-delete.html

Examples

1
delete("twitter", "tweet", 1)

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