# Routing instability after upgrading from 1.1.1 to 1.2

**URL:** <https://discuss.elastic.co/t/routing-instability-after-upgrading-from-1-1-1-to-1-2/17828>\
**Category:** Elasticsearch\
**Created:** [May 30, 2014, 8:56am UTC](https://discuss.elastic.co/t/routing-instability-after-upgrading-from-1-1-1-to-1-2/17828 "2014-05-30T08:56:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrassy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrassy/32/32783_2.png) [@andrassy](https://discuss.elastic.co/u/andrassy)\
**Post date:** [May 30, 2014, 8:56am UTC](https://discuss.elastic.co/t/routing-instability-after-upgrading-from-1-1-1-to-1-2/17828/1 "2014-05-30T08:56:08Z")

</div>

Hi,

We have mapping templates set up to drive custom routing based on a field  
in our doc. The index and search seemed to be working fine under 1.1.1, but  
following an upgrade to 1.2 a percentage of our searches are not returning  
the expected documents - they actually return nothing as we're filtering on  
the same value as the routing key passed through the query string. Removing  
the routing parameter from the \_search request returns the docs as expected  
so it looks like this is specifically down to the shards that are being  
targeted.

This seems to affect all our indexes that use this field based routing  
method. Guessing, I'd say it affects about 10% of our calls, and we have 10  
shards, although this is gut feel rather than measured at this stage. We  
have just re-indexed one index (using our own tool to scroll and bulk  
insert) into a new index (which should be subject to identical mapping  
templates) and the docs now return as expected. At this stage I can't  
guarantee that we haven't changed anything else (still investigating) but I  
thought I'd post something here just in case anyone else is facing a  
similar issue.

I checked github for any related issues and couldn't see anything.

Anybody any ideas of what to check next?

Thanks,

Neil

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a087921a-336e-45fa-b71a-ed1fc6b71dac%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a087921a-336e-45fa-b71a-ed1fc6b71dac%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:25am UTC](https://discuss.elastic.co/t/routing-instability-after-upgrading-from-1-1-1-to-1-2/17828/2 "2017-07-06T01:25:52Z")

</div>

Closed on July 6, 2017, 1:25am UTC


