# Without alias, can't I use routing in 0.20.4?

**URL:** <https://discuss.elastic.co/t/without-alias-cant-i-use-routing-in-0-20-4/10670>\
**Category:** Elasticsearch\
**Created:** [February 8, 2013, 6:20pm UTC](https://discuss.elastic.co/t/without-alias-cant-i-use-routing-in-0-20-4/10670 "2013-02-08T18:20:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jae/32/791_2.png) [@Jae](https://discuss.elastic.co/u/Jae)\
**Post date:** [February 8, 2013, 6:20pm UTC](https://discuss.elastic.co/t/without-alias-cant-i-use-routing-in-0-20-4/10670/1 "2013-02-08T18:20:04Z")

</div>

I am upgrading elasticsearch from 0.19.x to 0.20.4 but routing key is not  
working I am getting RoutingMissingException, which I don't have previously.

When I traced source code, MetaData.resolveIndexRouting.java:321, aliases  
does not have any item for the index name and it's returning default null  
routing value.

Is this intended or not? I cannot find any comment about this on the web  
page. Also, if I want to use routing, how should I set up aliases?

Thank you  
Best, Jae

--  
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:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [February 8, 2013, 6:25pm UTC](https://discuss.elastic.co/t/without-alias-cant-i-use-routing-in-0-20-4/10670/2 "2013-02-08T18:25:52Z")

</div>

Does your mapping has a \_parent field or is routing required in your  
mapping? Also how does your index request look like?

On 8 February 2013 19:20, Jae [metacret@gmail.com](mailto:metacret@gmail.com) wrote:

> I am upgrading elasticsearch from 0.19.x to 0.20.4 but routing key is not  
> working I am getting RoutingMissingException, which I don't have previously.
> 
> When I traced source code, MetaData.resolveIndexRouting.java:321, aliases  
> does not have any item for the index name and it's returning default null  
> routing value.
> 
> Is this intended or not? I cannot find any comment about this on the web  
> page. Also, if I want to use routing, how should I set up aliases?
> 
> Thank you  
> Best, Jae
> 
> --  
> 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).

--  
Met vriendelijke groet,

Martijn van Groningen

--  
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:** ![Jae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jae/32/791_2.png) [@Jae](https://discuss.elastic.co/u/Jae)\
**Post date:** [February 8, 2013, 10:00pm UTC](https://discuss.elastic.co/t/without-alias-cant-i-use-routing-in-0-20-4/10670/3 "2013-02-08T22:00:47Z")

</div>

This was my data problem. Never mind and Thank you for your answer.

On Friday, February 8, 2013 10:20:04 AM UTC-8, Jae wrote:

> I am upgrading elasticsearch from 0.19.x to 0.20.4 but routing key is not  
> working I am getting RoutingMissingException, which I don't have previously.
> 
> When I traced source code, MetaData.resolveIndexRouting.java:321, aliases  
> does not have any item for the index name and it's returning default null  
> routing value.
> 
> Is this intended or not? I cannot find any comment about this on the web  
> page. Also, if I want to use routing, how should I set up aliases?
> 
> Thank you  
> Best, Jae

--  
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:52am UTC](https://discuss.elastic.co/t/without-alias-cant-i-use-routing-in-0-20-4/10670/4 "2017-07-06T02:52:19Z")

</div>

Closed on July 6, 2017, 2:52am UTC


