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" }}
{"query":{"filtered":{"query":{"match_all":{}},"filter":{"and":[{"and":[{"range":{"baths":{"from":1,"to":10}}},{"range":{"beds":{"from":0,"to":4}}},{"range":{"price":{"from":0,"to":8000}}},{"query":{"match_phrase":{"postal_code":"95930"}}},{"query":{"match_phrase":{"city":"Sts,
CA"}}}]}]}}}}


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,

-A

--
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.
For more options, visit https://groups.google.com/groups/opt_out.