Tiglath
(Tiglath)
May 29, 2013, 6:34pm
1
I need to use the _msearch endpoint without passing a file, just data.
So I tried:
curl -XGET localhost:9200/myindex/_msearch --data-binary '{"query" : {"match_all" : {}}}'
And I get the error:
{"error":"ActionRequestValidationException[Validation Failed: 1: no requests added;]","status":500}
This doesn't work either.
curl -XGET localhost:9200/myindex/_msearch --data '{"query" : {"match_all" : {}}}'
Any ideas?
Thanks
--
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 .
dadoonet
(David Pilato)
May 29, 2013, 8:02pm
2
I think you need to add a \n after each request.
--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs
Le 29 mai 2013 à 20:34, Tiglath temp6@tiglath.net a écrit :
I need to use the _msearch endpoint without passing a file, just data.
So I tried:
curl -XGET localhost:9200/myindex/_msearch --data-binary '{"query" : {"match_all" : {}}}'
And I get the error:
{"error":"ActionRequestValidationException[Validation Failed: 1: no requests added;]","status":500}
This doesn't work either.
curl -XGET localhost:9200/myindex/_msearch --data '{"query" : {"match_all" : {}}}'
Any ideas?
Thanks
--
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 .