# Elasticsearch multisearch API

**URL:** <https://discuss.elastic.co/t/elasticsearch-multisearch-api/101257>\
**Category:** Elasticsearch\
**Created:** [September 21, 2017, 2:56am UTC](https://discuss.elastic.co/t/elasticsearch-multisearch-api/101257 "2017-09-21T02:56:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![higee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/higee/32/22343_2.png) [@higee](https://discuss.elastic.co/u/higee)\
**Post date:** [September 21, 2017, 2:56am UTC](https://discuss.elastic.co/t/elasticsearch-multisearch-api/101257/1 "2017-09-21T02:56:53Z")

</div>

Hi, I'm stuck with elasticsearch multisearch.

Based on document, I'm supposed to get an array of each response. The problem is that I'm getting only one response. I'm not sure what I've done wrong.

In my example, it's of course possible to use range query. But this is not my real-use case and I've chosen this example to simplify the question. So it would be great if you could tell me how to figure this out using multisearch.

first image : documents in test index  
second image : multisearch query  
third image : multisearch result

 ![12 AM](https://us1.discourse-cdn.com/elastic/original/3X/a/e/aed44a673f3d964007b07011d91005a508e5c25d.png)  
 ![08 AM](https://us1.discourse-cdn.com/elastic/original/3X/1/9/197a889136453335eee7e3ab582243cb1e633797.png)  
 ![20 AM](https://us1.discourse-cdn.com/elastic/original/3X/b/e/bea6d9ee1ddfeb0c9e999d545855283622e4c3c5.png)

Thanks in adavance

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 21, 2017, 3:43am UTC](https://discuss.elastic.co/t/elasticsearch-multisearch-api/101257/2 "2017-09-21T03:43:01Z")

</div>

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them 🙂

It'll also help if you can make sure you use the `</>` button when posting the json, to maintain formatting.

---

<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:** [October 19, 2017, 3:43am UTC](https://discuss.elastic.co/t/elasticsearch-multisearch-api/101257/3 "2017-10-19T03:43:04Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
