# When to use TransportBroadcastOperationAction?

**URL:** <https://discuss.elastic.co/t/when-to-use-transportbroadcastoperationaction/12336>\
**Category:** Elasticsearch\
**Created:** [June 9, 2013, 10:12am UTC](https://discuss.elastic.co/t/when-to-use-transportbroadcastoperationaction/12336 "2013-06-09T10:12:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)\
**Post date:** [June 9, 2013, 10:12am UTC](https://discuss.elastic.co/t/when-to-use-transportbroadcastoperationaction/12336/1 "2013-06-09T10:12:25Z")

</div>

Hi there,

Reading the sources, I'm trying to figure out when to  
extend TransportBroadcastOperationAction and when to use other Transport  
classes as base. Is there any general guidance? couldn't find any.

More specifically, I'm interested in executing a normal user query (search)  
and then process the raw text of the results, sending back the results of  
that processing and not the actual results. To parallel the work, I want  
each shard to perform the work on its results.

On one hand, it makes sense duplicating the code the TransportSearchActions  
use, but on the other hand implementing a Broadcast type action seems to  
hide all that complexity (e.g. the Count type which also executes a query).

In case that matters I have one shard per index (but multiple replicas).

Any advice welcome...

Itamar.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:32am UTC](https://discuss.elastic.co/t/when-to-use-transportbroadcastoperationaction/12336/2 "2017-07-06T02:32:04Z")

</div>


