zoukankan      html  css  js  c++  java
  • elasticsearch 中文API 删除(四)

    删除API

    删除api允许你通过id,从特定的索引中删除类型化的JSON文档。如下例:

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

    操作线程

    The get API allows to set the threading model the operation will be performed when the actual execution of the API is performed on the same node (the API is executed on a shard that is allocated on the same server).

    默认情况下,operationThreaded设置为true表示操作执行在不同的线程上面。下面是一个设置为false的例子。

    DeleteResponse response = client.prepareDelete("twitter", "tweet", "1")
            .setOperationThreaded(false)
            .execute()
            .actionGet();
  • 相关阅读:
    UVa 1605
    UVa 120
    UVa 10384
    UVa 11694
    UVa 11846
    常用小函数
    【DP】:CF #319 (Div. 2) B. Modulo Sum
    类的无参方法
    类和对象
    七言
  • 原文地址:https://www.cnblogs.com/bmaker/p/5472431.html
Copyright © 2011-2022 走看看