# ElasticSearch operationThreaded Method Not Available

**URL:** <https://discuss.elastic.co/t/elasticsearch-operationthreaded-method-not-available/86330>\
**Category:** Elasticsearch\
**Created:** [May 18, 2017, 8:04pm UTC](https://discuss.elastic.co/t/elasticsearch-operationthreaded-method-not-available/86330 "2017-05-18T20:04:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaab\_Awan](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Kaab\_Awan](https://discuss.elastic.co/u/Kaab_Awan)\
**Post date:** [May 18, 2017, 8:04pm UTC](https://discuss.elastic.co/t/elasticsearch-operationthreaded-method-not-available/86330/1 "2017-05-18T20:04:12Z")

</div>

Hi everyone,

I am using Es 5.4.0.  
  
org.elasticsearch  
elasticsearch  
version\>5.4.0

I am using the following code to create a delete document request in scala

val settings = Settings.builder().put("[cluster.name](http://cluster.name)", \_clusterName).build()  
val client = new PreBuiltTransportClient(settings)  
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(\_host), \_port))  
val response = client.prepareDelete(\_indexName, \_TypeName, id).get()

The document deletes from the es index but the effect on the index comes very late.

In the docs I saw a way to make it fast i-e to setOperationThreaded(false) but the problem is that this method is only available in the GetRequestBuilder  
val response = client.prepareGet(\_indexName, \_typeName, id).setOperationThreaded(false).get()

As the 5.4 docs say that this method is available in all the RequestBuilder whether it is Get/Delete/Update.

Morever I can see the diffence between org.elasticsearch.action.delete.DeleteRequestBuilder and org.elasticsearch.action.get.GetRequestBuilder classes which is the following

public class GetRequestBuilder extends SingleShardOperationRequestBuilder\<GetRequest, GetResponse, GetRequestBuilder\> {  
}

public class DeleteRequestBuilder extends ReplicationRequestBuilder\<DeleteRequest, DeleteResponse, DeleteRequestBuilder\>  
implements WriteRequestBuilder {  
}

which conclude that the method I am looking for is not available in Delete API, but the docs say a different story. Can anyone please guide me?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 15, 2017, 8:04pm UTC](https://discuss.elastic.co/t/elasticsearch-operationthreaded-method-not-available/86330/2 "2017-06-15T20:04:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
