exists

Return true if the specified document exists, false otherwise.

@example

client.exists? index: 'myindex', type: 'mytype', id: '1'

@option arguments String :id The document ID (*Required*) @option arguments String :index The name of the index (*Required*) @option arguments String :type The type of the document (default: _all) @option arguments String :parent The ID of the parent document @option arguments String :preference Specify the node or shard the operation should be performed on (default: random) @option arguments Boolean :realtime Specify whether to perform the operation in realtime or search mode @option arguments Boolean :refresh Refresh the shard containing the document before performing the operation @option arguments String :routing Specific routing value

@see http://elasticsearch.org/guide/reference/api/get/

Meta