Learn R Programming

elasticsearch (version 0.1.0)

delete: delete

Description

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

Usage

delete(client, ...)
"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

Run this code
delete("twitter", "tweet", 1)

Run the code above in your browser using DataLab