Elasticsearch Chinese API Removal (iv)

Source: Internet
Author: User
Remove API

The Delete API allows you to remove a typed JSON document from a specific index by ID. The following example:

DeleteResponse response = client.prepareDelete("twitter", "tweet", "1")        .execute()        .actionGet();
Manipulating threads

The Get API allows to set the threading model the operation would be a performed when the actual execution of the API is perf Ormed on the same node (the API was executed on a shard that's allocated on the same server).

By default, operationThreaded set to True to indicate that the operation executes on a different thread. The following is an example set to False.

DeleteResponse response = client.prepareDelete("twitter", "tweet", "1")        .setOperationThreaded(false)        .execute()        .actionGet();

Elasticsearch Chinese API Removal (iv)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.