# Where is the error on my mget request?... LoL

**URL:** <https://discuss.elastic.co/t/where-is-the-error-on-my-mget-request-lol/14111>\
**Category:** Elasticsearch\
**Created:** [October 25, 2013, 9:52am UTC](https://discuss.elastic.co/t/where-is-the-error-on-my-mget-request-lol/14111 "2013-10-25T09:52:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablo3027](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@pablo3027](https://discuss.elastic.co/u/pablo3027)\
**Post date:** [October 25, 2013, 9:52am UTC](https://discuss.elastic.co/t/where-is-the-error-on-my-mget-request-lol/14111/1 "2013-10-25T09:52:41Z")

</div>

I am tray to do an mget on elasticSearch but this not seems work fine:

My request :

curl -XPOST "[http://localhost:9200/index1/tip1/\_mget?routing=XXXXX-2-yy](http://localhost:9200/index1/tip1/_mget?routing=XXXXX-2-yy)" -d'{"ids": ["2-8","2-26","2-1152"]}'

Response :  
{  
"docs": [  
{  
"\_index": "indx1",  
"\_type": "tip1",  
"\_id": "2-8",  
"exists": false  
},  
{  
"\_index": "indx1",  
"\_type": "tip1",  
"\_id": "2-26",  
"exists": false  
},  
{  
"\_index": "indx1",  
"\_type": "tip1",  
"\_id": "2-1152",  
"exists": false  
}  
]  
}

With normal search over index . I can find the elements with this ids

curl -XPOST "[http://localhost:9200/indx1/tip1/\_search?routing=XXXX-2-yyy](http://localhost:9200/indx1/tip1/_search?routing=XXXX-2-yyy)" -d'{ "query": {"match\_all": {},"filtered": { "query": {"match\_all": {}},"filter": {"ids": {"values": ["2-8","2-26","2-1152"]}}}}}'

{  
"took": 96,  
"timed\_out": false,  
"\_shards": {  
"total": 1,  
"successful": 1,  
"failed": 0  
},  
"hits": {  
"total": 2,  
"max\_score": 1,  
"hits": [  
{  
"\_index": "indx1",  
"\_type": "tip1",  
"\_id": "2-8",  
"\_score": 1,  
"\_source": {  
"name" : "aa1"  
...  
...  
},  
{  
"\_index": "indx1",  
"\_type": "tip1",  
"\_id": "2-26",  
"\_score": 1,  
"\_source": {  
"name" : "aa2"  
...  
...  
}  
}  
]  
}  
}

Where is the error in the mget request???

Help!!!!!

Thanks

---

<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:** [October 27, 2013, 3:47am UTC](https://discuss.elastic.co/t/where-is-the-error-on-my-mget-request-lol/14111/2 "2013-10-27T03:47:35Z")

</div>

It looks like your copy and paste is not consistent. You search in index1 but you get results from custodiafe-indx1 and indx1.

Could you recreate your issue with a full curl recreation and gist it?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 oct. 2013 à 11:52, pablo3027 [pablo3027@gmail.com](mailto:pablo3027@gmail.com) a écrit :

I am tray to do an mget on elasticSearch but this not seems work fine:

My request :

curl -XPOST "[http://localhost:9200/index1/tip1/\_mget?routing=XXXXX-2-yy](http://localhost:9200/index1/tip1/_mget?routing=XXXXX-2-yy)"  
-d'{"ids": ["2-8","2-26","2-1152"]}'

Response :  
{  
"docs": [  
{  
"\_index": "custodiafe-indx1",  
"\_type": "tip1",  
"\_id": "2-8",  
"exists": false  
},  
{  
"\_index": "indx1",  
"\_type": "tip1",  
"\_id": "2-26",  
"exists": false  
},  
{  
"\_index": "indx1",  
"\_type": "tip1",  
"\_id": "2-1152",  
"exists": false  
}  
]  
}

With normal search over index . I can find the elements with this ids

curl -XPOST "[http://localhost:9200/indx1/tip1/\_search?routing=XXXX-2-yyy](http://localhost:9200/indx1/tip1/_search?routing=XXXX-2-yyy)"  
-d'{ "query": {"match\_all": {},"filtered": { "query": {"match\_all":  
{}},"filter": {"ids": {"values": ["2-8","2-26","2-1152"]}}}}}'

{  
"took": 96,  
"timed\_out": false,  
"\_shards": {  
"total": 1,  
"successful": 1,  
"failed": 0  
},  
"hits": {  
"total": 2,  
"max\_score": 1,  
"hits": [  
{  
"\_index": "indx1",  
"\_type": "tip1",  
"\_id": "2-8",  
"\_score": 1,  
"\_source": {  
"name" : "aa1"  
...  
...  
},  
{  
"\_index": "indx1",  
"\_type": "tip1",  
"\_id": "2-26",  
"\_score": 1,  
"\_source": {  
"name" : "aa2"  
...  
...  
}  
}  
]  
}  
}

Where is the error in the mget request???

Help!!!!!

Thanks

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/Where-is-the-error-on-my-mget-request-LoL-tp4043181.html](http://elasticsearch-users.115913.n3.nabble.com/Where-is-the-error-on-my-mget-request-LoL-tp4043181.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

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

--  
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:** ![pablo3027](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@pablo3027](https://discuss.elastic.co/u/pablo3027)\
**Post date:** [October 28, 2013, 7:27am UTC](https://discuss.elastic.co/t/where-is-the-error-on-my-mget-request-lol/14111/3 "2013-10-28T07:27:37Z")

</div>

Thats right i am going to edit the principal post.. but where is te request problem?? Why dont find 2-8 and  
2-26??

--  
Saludos,  
Pablo Blasco Martinavarro.

---

<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:** [October 28, 2013, 4:42pm UTC](https://discuss.elastic.co/t/where-is-the-error-on-my-mget-request-lol/14111/4 "2013-10-28T16:42:18Z")

</div>

No error in your request. Sounds like routing parameter is not supported in mget.  
Issue opened here: [mget API should support global routing parameter · Issue #3996 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/3996)

Thanks for reporting that.

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

Le 28 oct. 2013 à 08:27, pablo3027 [pablo3027@gmail.com](mailto:pablo3027@gmail.com) a écrit :

> Thats right .. but where is te request problem?? Why dont find 2-8 and 2-26??
> 
> My request :
> 
> curl -XPOST "[http://localhost:9200/index1/tip1/\_mget?routing=XXXXX-2-yy](http://localhost:9200/index1/tip1/_mget?routing=XXXXX-2-yy)"  
> -d'{"ids": ["2-8","2-26","2-1152"]}'
> 
> Response :  
> {  
> "docs": [  
> {  
> "\_index": "indx1",  
> "\_type": "tip1",  
> "\_id": "2-8",  
> "exists": false  
> },  
> {  
> "\_index": "indx1",  
> "\_type": "tip1",  
> "\_id": "2-26",  
> "exists": false  
> },  
> {  
> "\_index": "indx1",  
> "\_type": "tip1",  
> "\_id": "2-1152",  
> "exists": false  
> }  
> ]  
> }
> 
> With normal search over index . I can find the elements with this ids
> 
> curl -XPOST "[http://localhost:9200/indx1/tip1/\_search?routing=XXXX-2-yyy](http://localhost:9200/indx1/tip1/_search?routing=XXXX-2-yyy)"  
> -d'{ "query": {"match\_all": {},"filtered": { "query": {"match\_all":  
> {}},"filter": {"ids": {"values": ["2-8","2-26","2-1152"]}}}}}'
> 
> {  
> "took": 96,  
> "timed\_out": false,  
> "\_shards": {  
> "total": 1,  
> "successful": 1,  
> "failed": 0  
> },  
> "hits": {  
> "total": 2,  
> "max\_score": 1,  
> "hits": [  
> {  
> "\_index": "indx1",  
> "\_type": "tip1",  
> "\_id": "2-8",  
> "\_score": 1,  
> "\_source": {  
> "name" : "aa1"  
> ...  
> ...  
> },  
> {  
> "\_index": "indx1",  
> "\_type": "tip1",  
> "\_id": "2-26",  
> "\_score": 1,  
> "\_source": {  
> "name" : "aa2"  
> ...  
> ...  
> }  
> }  
> ]  
> }  
> }
> 
> 2013/10/27 dadoonet [via Elasticsearch Users] \<[hidden email]\>  
> It looks like your copy and paste is not consistent. You search in index1 but you get results from custodiafe-indx1 and indx1.
> 
> Could you recreate your issue with a full curl recreation and gist it?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 25 oct. 2013 à 11:52, pablo3027 \<[hidden email]\> a écrit :
> 
> I am tray to do an mget on elasticSearch but this not seems work fine:
> 
> My request :
> 
> curl -XPOST "[http://localhost:9200/index1/tip1/\_mget?routing=XXXXX-2-yy](http://localhost:9200/index1/tip1/_mget?routing=XXXXX-2-yy)"  
> -d'{"ids": ["2-8","2-26","2-1152"]}'
> 
> Response :  
> {  
> "docs": [  
> {  
> "\_index": "custodiafe-indx1",  
> "\_type": "tip1",  
> "\_id": "2-8",  
> "exists": false  
> },  
> {  
> "\_index": "indx1",  
> "\_type": "tip1",  
> "\_id": "2-26",  
> "exists": false  
> },  
> {  
> "\_index": "indx1",  
> "\_type": "tip1",  
> "\_id": "2-1152",  
> "exists": false  
> }  
> ]  
> }
> 
> With normal search over index . I can find the elements with this ids
> 
> curl -XPOST "[http://localhost:9200/indx1/tip1/\_search?routing=XXXX-2-yyy](http://localhost:9200/indx1/tip1/_search?routing=XXXX-2-yyy)"  
> -d'{ "query": {"match\_all": {},"filtered": { "query": {"match\_all":  
> {}},"filter": {"ids": {"values": ["2-8","2-26","2-1152"]}}}}}'
> 
> {  
> "took": 96,  
> "timed\_out": false,  
> "\_shards": {  
> "total": 1,  
> "successful": 1,  
> "failed": 0  
> },  
> "hits": {  
> "total": 2,  
> "max\_score": 1,  
> "hits": [  
> {  
> "\_index": "indx1",  
> "\_type": "tip1",  
> "\_id": "2-8",  
> "\_score": 1,  
> "\_source": {  
> "name" : "aa1"  
> ...  
> ...  
> },  
> {  
> "\_index": "indx1",  
> "\_type": "tip1",  
> "\_id": "2-26",  
> "\_score": 1,  
> "\_source": {  
> "name" : "aa2"  
> ...  
> ...  
> }  
> }  
> ]  
> }  
> }
> 
> Where is the error in the mget request???
> 
> Help!!!!!
> 
> Thanks
> 
> --  
> View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/Where-is-the-error-on-my-mget-request-LoL-tp4043181.html](http://elasticsearch-users.115913.n3.nabble.com/Where-is-the-error-on-my-mget-request-LoL-tp4043181.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).
> 
> --  
> 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 [hidden email].  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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 [hidden email].  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> If you reply to this email, your message will be added to the discussion below:  
> [http://elasticsearch-users.115913.n3.nabble.com/Where-is-the-error-on-my-mget-request-LoL-tp4043181p4043275.html](http://elasticsearch-users.115913.n3.nabble.com/Where-is-the-error-on-my-mget-request-LoL-tp4043181p4043275.html)  
> To unsubscribe from Where is the error on my mget request??... LoL, click here.  
> NAML
> 
> --  
> Saludos,  
> Pablo Blasco Martinavarro.
> 
> View this message in context: Re: Where is the error on my mget request??... LoL  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).
> 
> --  
> 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).

--  
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:10am UTC](https://discuss.elastic.co/t/where-is-the-error-on-my-mget-request-lol/14111/5 "2017-07-06T02:10:13Z")

</div>


