# Difference between multi percolate and bulk api

**URL:** <https://discuss.elastic.co/t/difference-between-multi-percolate-and-bulk-api/22770>\
**Category:** Elasticsearch\
**Created:** [March 19, 2015, 9:55pm UTC](https://discuss.elastic.co/t/difference-between-multi-percolate-and-bulk-api/22770 "2015-03-19T21:55:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jettro\_Coenradie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jettro_coenradie/32/59704_2.png) [@Jettro\_Coenradie](https://discuss.elastic.co/u/Jettro_Coenradie)\
**Post date:** [March 19, 2015, 9:55pm UTC](https://discuss.elastic.co/t/difference-between-multi-percolate-and-bulk-api/22770/1 "2015-03-19T21:55:12Z")

</div>

Hi someone else noticed there is a difference between the bulk api and the  
multi percolate api. In the bulk you need to use \_type and \_index while in  
the multi percolate API you use type and index. is there a reason for this?  
Or just an inconsistency?

{"percolate" : {"index" : "twitter", "type" : "tweet"}}  
{"doc" : {"message" : "some text"}}

{ "index" : { "\_index" : "test", "\_type" : "type1", "\_id" : "1" } }  
{ "field1" : "value1" }

Thanks, regards Jettro

--  
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/f4a75165-bd29-470c-bfb1-f4995f23ae5a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f4a75165-bd29-470c-bfb1-f4995f23ae5a%40googlegroups.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:25am UTC](https://discuss.elastic.co/t/difference-between-multi-percolate-and-bulk-api/22770/2 "2017-07-06T00:25:28Z")

</div>

Closed on July 6, 2017, 12:25am UTC


