Bulk loading percolator queries


(Ali-3) #1

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: bulkone
bulkone

{ "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
Any help would be greatly appreciated.

Thanks in advance

-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.


(system) #2