# ActionRequest support for BulkProcessor in the Java API

**URL:** https://discuss.elastic.co/t/actionrequest-support-for-bulkprocessor-in-the-java-api/22932
**Category:** Elasticsearch
**Created:** [March 26, 2015, 7:13pm UTC](https://discuss.elastic.co/t/actionrequest-support-for-bulkprocessor-in-the-java-api/22932 "2015-03-26T19:13:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Andre\_Encarnacao](https://avatars.discourse-cdn.com/v4/letter/a/9f8e36/32.png) [@Andre\_Encarnacao](https://discuss.elastic.co/u/Andre_Encarnacao)
#### Post date: [March 26, 2015, 7:13pm UTC](https://discuss.elastic.co/t/actionrequest-support-for-bulkprocessor-in-the-java-api/22932/1 "2015-03-26T19:13:29Z")

</div>

Hi,

I'm wondering why BulkProcessor (and BulkRequest) only supports  
IndexRequest, UpdateRequest, and DeleteRequests, and not SearchRequests?  
I'd like to be able to use Bulk Processor for processing multiple queries  
instead of having to use the MultiSearch API. Is this not possible? And if  
so, why not?

Thanks!  
Andre

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e7fe75d3-2684-4514-ab3d-c8b361fc6de3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e7fe75d3-2684-4514-ab3d-c8b361fc6de3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)
#### Post date: [March 27, 2015, 9:00am UTC](https://discuss.elastic.co/t/actionrequest-support-for-bulkprocessor-in-the-java-api/22932/2 "2015-03-27T09:00:43Z")

</div>

The BulkProcessor is a helper class for managing write requests where large  
chunks of documents are combined into a single write request which saves a  
lot of network acknowledging ping/pong.

If you send queries, there is a small write request, after which large  
response chunks are read, so there is no ping/pong, and no bulk mode is  
needed.

Jörg

On Thu, Mar 26, 2015 at 8:13 PM, Andre Encarnacao \<  
[andre.v.encarnacao@gmail.com](mailto:andre.v.encarnacao@gmail.com)\> wrote:

> Hi,
> 
> I'm wondering why BulkProcessor (and BulkRequest) only supports  
> IndexRequest, UpdateRequest, and DeleteRequests, and not SearchRequests?  
> I'd like to be able to use Bulk Processor for processing multiple queries  
> instead of having to use the MultiSearch API. Is this not possible? And if  
> so, why not?
> 
> Thanks!  
> Andre
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/e7fe75d3-2684-4514-ab3d-c8b361fc6de3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e7fe75d3-2684-4514-ab3d-c8b361fc6de3%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/e7fe75d3-2684-4514-ab3d-c8b361fc6de3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e7fe75d3-2684-4514-ab3d-c8b361fc6de3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE3woWQ8O3MKdE-Vc7quzmJ3So\_KQf6Zvmhmqq9Bf4q7w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE3woWQ8O3MKdE-Vc7quzmJ3So_KQf6Zvmhmqq9Bf4q7w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:23am UTC](https://discuss.elastic.co/t/actionrequest-support-for-bulkprocessor-in-the-java-api/22932/3 "2017-07-06T00:23:30Z")

</div>


