How to use Bulk API to load percolator queries?

Hi, I am trying to bulk load into the _percolator index.

Unfortunately I am getting {"error":"ActionRequestValidationException[Validation
Failed: 1: no requests added;]","status":500}

here are the contents of my file: bulk_one (it just has one query for
testing purpose)

curl -XPOST localhost:9200/_bulk --data-binary @bulk_one (command I used)

{ "index" : { "_index" : "_percolator", "_type" : "for_sale_listing", "_id"
: "9999-5268ae33140b548fe2000007" }}

Note: there are just two lines one with meta info and second line that
contains the query I want to put in the _percolator index
I am curious whether this is even possible.

Any help would be greatly appreciated.

Thank you,


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
For more options, visit