# Multiget & routing

**URL:** <https://discuss.elastic.co/t/multiget-routing/11563>\
**Category:** Elasticsearch\
**Created:** [April 12, 2013, 11:35am UTC](https://discuss.elastic.co/t/multiget-routing/11563 "2013-04-12T11:35:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![james\_lewis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_lewis/32/2296_2.png) [@james\_lewis](https://discuss.elastic.co/u/james_lewis)\
**Post date:** [April 12, 2013, 11:35am UTC](https://discuss.elastic.co/t/multiget-routing/11563/1 "2013-04-12T11:35:21Z")

</div>

Hi guys,

Can you create a multiget query to get a bunch of ids and supply the  
correct routing? Is there some way to use aliases with multiget?

Cheers,  
James

## --

This email, including attachments, is private and confidential. If you have  
received this email in error please notify the sender and delete it from  
your system. Emails are not secure and may contain viruses. No liability  
can be accepted for viruses that might be transferred by this email or any  
attachment. Any unauthorised copying of this message or unauthorised  
distribution and publication of the information contained herein are  
prohibited. 7digital Limited. Registered office: Unit F, Lower Ground  
Floor, 5-25 Scrutton Street, Zetland House London EC2A 4HJ. Registered in  
England and Wales. Registered No. 04843573.

--  
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:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [April 14, 2013, 10:15am UTC](https://discuss.elastic.co/t/multiget-routing/11563/2 "2013-04-14T10:15:51Z")

</div>

Yes, and yes.

On Fri, Apr 12, 2013 at 1:35 PM, James Lewis [james.lewis@7digital.com](mailto:james.lewis@7digital.com)wrote:

> Hi guys,
> 
> Can you create a multiget query to get a bunch of ids and supply the  
> correct routing? Is there some way to use aliases with multiget?
> 
> Cheers,  
> James
> 
> --  
> This email, including attachments, is private and confidential. If you have  
> received this email in error please notify the sender and delete it from  
> your system. Emails are not secure and may contain viruses. No liability  
> can be accepted for viruses that might be transferred by this email or any  
> attachment. Any unauthorised copying of this message or unauthorised  
> distribution and publication of the information contained herein are  
> prohibited. 7digital Limited. Registered office: Unit F, Lower Ground  
> Floor, 5-25 Scrutton Street, Zetland House London EC2A 4HJ. Registered in  
> England and Wales. Registered No. 04843573.
> 
> --  
> 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:** ![james\_lewis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_lewis/32/2296_2.png) [@james\_lewis](https://discuss.elastic.co/u/james_lewis)\
**Post date:** [April 14, 2013, 1:50pm UTC](https://discuss.elastic.co/t/multiget-routing/11563/3 "2013-04-14T13:50:59Z")

</div>

Hey Clinton, would the query look like this (I haven't had a chance to test  
it yet):

curl 'localhost:9200/\_mget' -d '{  
"docs" : [  
{  
"\_index" : "index",  
"\_type" : "type",  
_"\_routing" : "route",_  
"\_id" : "1"  
},  
{  
"\_index" : "index",  
"\_type" : "type",  
_"\_routing" : "route",_  
"\_id" : "2"  
}  
]  
}'

On Sun, Apr 14, 2013 at 11:15 AM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:

> Yes, and yes.
> 
> On Fri, Apr 12, 2013 at 1:35 PM, James Lewis [james.lewis@7digital.com](mailto:james.lewis@7digital.com)wrote:
> 
> > Hi guys,
> > 
> > Can you create a multiget query to get a bunch of ids and supply the  
> > correct routing? Is there some way to use aliases with multiget?
> > 
> > Cheers,  
> > James
> > 
> > --  
> > This email, including attachments, is private and confidential. If you  
> > have  
> > received this email in error please notify the sender and delete it from  
> > your system. Emails are not secure and may contain viruses. No liability  
> > can be accepted for viruses that might be transferred by this email or any  
> > attachment. Any unauthorised copying of this message or unauthorised  
> > distribution and publication of the information contained herein are  
> > prohibited. 7digital Limited. Registered office: Unit F, Lower Ground  
> > Floor, 5-25 Scrutton Street, Zetland House London EC2A 4HJ. Registered in  
> > England and Wales. Registered No. 04843573.
> > 
> > --  
> > 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 a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/2pphB7zJHRo/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/2pphB7zJHRo/unsubscribe?hl=en-US)  
> .  
> To unsubscribe from this group and all its topics, 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).

## --

This email, including attachments, is private and confidential. If you have  
received this email in error please notify the sender and delete it from  
your system. Emails are not secure and may contain viruses. No liability  
can be accepted for viruses that might be transferred by this email or any  
attachment. Any unauthorised copying of this message or unauthorised  
distribution and publication of the information contained herein are  
prohibited. 7digital Limited. Registered office: Unit F, Lower Ground  
Floor, 5-25 Scrutton Street, Zetland House London EC2A 4HJ. Registered in  
England and Wales. Registered No. 04843573.

--  
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:41am UTC](https://discuss.elastic.co/t/multiget-routing/11563/4 "2017-07-06T02:41:15Z")

</div>


