# Indexing and percolating documents in bulk

**URL:** <https://discuss.elastic.co/t/indexing-and-percolating-documents-in-bulk/2375>\
**Category:** Elasticsearch\
**Created:** [June 10, 2015, 6:55pm UTC](https://discuss.elastic.co/t/indexing-and-percolating-documents-in-bulk/2375 "2015-06-10T18:55:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rastro](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@rastro](https://discuss.elastic.co/u/rastro)\
**Post date:** [June 10, 2015, 6:55pm UTC](https://discuss.elastic.co/t/indexing-and-percolating-documents-in-bulk/2375/1 "2015-06-10T18:55:32Z")

</div>

I want to index documents in bulk, but also have percolate run across the documents. I don't see any percolate information returned from the bulk call.

I would prefer to not send my documents to the server twice (once to index and once to percolate), nor gather the IDs from the index and post those back for percolating.

So, can I get percolate info when using bulk?

It's referenced in an [old post](http://elasticsearch-users.115913.n3.nabble.com/Is-Bulk-Percolation-possible-tp4033060p4033076.html) that it's possible, but I didn't get enough of a clue to track it down.

Ultimately, I'd like to do this in the ruby API, but if the engine doesn't support it, clearly the API can't either...

---

<div class="post-metadata">

**Author:** ![rastro](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@rastro](https://discuss.elastic.co/u/rastro)\
**Post date:** [June 22, 2015, 10:10pm UTC](https://discuss.elastic.co/t/indexing-and-percolating-documents-in-bulk/2375/2 "2015-06-22T22:10:03Z")

</div>

@Igor_Motov, that original posting (to which I can't reply because of the new forums) was yours. Can you comment on my followup question here? Thanks!

---

<div class="post-metadata">

**Author:** ![rastro](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@rastro](https://discuss.elastic.co/u/rastro)\
**Post date:** [July 6, 2015, 8:04pm UTC](https://discuss.elastic.co/t/indexing-and-percolating-documents-in-bulk/2375/3 "2015-07-06T20:04:15Z")

</div>

A new [SO post](http://stackoverflow.com/questions/31144490/using-percolate-for-bulk-indexing-in-elasticsearch-ruby) says that Elasticsearch doesn't support this anymore. Time to go hack a work-around and hope the cluster doesn't die.

---

<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:03am UTC](https://discuss.elastic.co/t/indexing-and-percolating-documents-in-bulk/2375/4 "2017-07-06T00:03:23Z")

</div>


