# Multisearch question, please

**URL:** <https://discuss.elastic.co/t/multisearch-question-please/12175>\
**Category:** Elasticsearch\
**Created:** [May 29, 2013, 6:34pm UTC](https://discuss.elastic.co/t/multisearch-question-please/12175 "2013-05-29T18:34:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiglath](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@Tiglath](https://discuss.elastic.co/u/Tiglath)\
**Post date:** [May 29, 2013, 6:34pm UTC](https://discuss.elastic.co/t/multisearch-question-please/12175/1 "2013-05-29T18:34:38Z")

</div>

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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 29, 2013, 8:02pm UTC](https://discuss.elastic.co/t/multisearch-question-please/12175/2 "2013-05-29T20:02:46Z")

</div>

I think you need to add a \n after each request.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 29 mai 2013 à 20:34, Tiglath [temp6@tiglath.net](mailto: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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:34am UTC](https://discuss.elastic.co/t/multisearch-question-please/12175/3 "2017-07-06T02:34:02Z")

</div>


