- Java Transport Client (deprecated): other versions:
- Preface
- Maven Repository
- Dealing with JAR dependency conflicts
- Embedding jar with dependencies
- Deploying in JBoss EAP6 module
- Client
- Document APIs
- Search API
- Count API
- Aggregations
- Percolate API
- Query DSL
- Indexed Scripts API
- Java API Administration
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Operation Threading
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Operation Threading
editThe count API allows one 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).
There are three threading modes.The NO_THREADS
mode means that the
count operation will be executed on the calling thread. The
SINGLE_THREAD
mode means that the count operation will be executed on
a single different thread for all local shards. The THREAD_PER_SHARD
mode means that the count operation will be executed on a different
thread for each local shard.
The default mode is SINGLE_THREAD
.
Was this helpful?
Thank you for your feedback.