# How to understand Operation Threading?

**URL:** <https://discuss.elastic.co/t/how-to-understand-operation-threading/111324>\
**Category:** Elasticsearch\
**Created:** [December 12, 2017, 11:56am UTC](https://discuss.elastic.co/t/how-to-understand-operation-threading/111324 "2017-12-12T11:56:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sshling](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sshling/32/24052_2.png) [@sshling](https://discuss.elastic.co/u/sshling)\
**Post date:** [December 12, 2017, 11:56am UTC](https://discuss.elastic.co/t/how-to-understand-operation-threading/111324/1 "2017-12-12T11:56:37Z")

</div>

ref : [Operation Threading](https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-docs-get.html#java-docs-get-thread)

> or to execute it on the calling thread (note that the API is still async).

How to understand " **still async**" ,and the two diff between settings?

tks

---

<div class="post-metadata">

**Author:** ![s1monw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s1monw/32/3637_2.png) [@s1monw](https://discuss.elastic.co/u/s1monw)\
**Post date:** [December 15, 2017, 10:23am UTC](https://discuss.elastic.co/t/how-to-understand-operation-threading/111324/2 "2017-12-15T10:23:25Z")

</div>

I think you should ignore this method. It's totally unused in the code and super confusing. The javadocs say:

`Controls if the operation will be executed on a separate thread when executed locally.`

We don't use this anymore and I will remove the reference from the docs. sorry for the confusion.

---

<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:** [January 12, 2018, 10:23am UTC](https://discuss.elastic.co/t/how-to-understand-operation-threading/111324/3 "2018-01-12T10:23:47Z")

</div>

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