# Problem using routing index/search

**URL:** <https://discuss.elastic.co/t/problem-using-routing-index-search/9554>\
**Category:** Elasticsearch\
**Created:** [November 5, 2012, 6:37am UTC](https://discuss.elastic.co/t/problem-using-routing-index-search/9554 "2012-11-05T06:37:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asoqa](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@asoqa](https://discuss.elastic.co/u/asoqa)\
**Post date:** [November 5, 2012, 6:37am UTC](https://discuss.elastic.co/t/problem-using-routing-index-search/9554/1 "2012-11-05T06:37:45Z")

</div>

My mapping:  
{  
"index" : {  
"properties" : {  
"message" : {  
"type" : "string"  
},  
"post\_date" : {  
"type" : "date",  
"format" : "dateOptionalTime"  
},  
"user" : {  
"type" : "string"  
}  
}  
}  
}

I used routing index, which refer to official guide [http://www.elasticsearch.org/guide/reference/api/index\_.html](http://www.elasticsearch.org/guide/reference/api/index_.html)

index:  
$ curl -XPOST '[http://localhost:9200/test/index?routing=kimchy](http://localhost:9200/test/index?routing=kimchy)' -d '{  
"user" : "kimchy",  
"post\_date" : "2009-11-15T14:12:12",  
"message" : "trying out Elastic Search"  
}'

index is ok, returned:  
{"ok":true,"\_index":"test","\_type":"index","\_id":"W9bEV9xWQe63sf0QqUfxnA","\_version":1}

but when I try to search according to id, like this:  
curl -XGET '[http://localhost:9200/test/index/W9bEV9xWQe63sf0QqUfxnA/?pretty=true](http://localhost:9200/test/index/W9bEV9xWQe63sf0QqUfxnA/?pretty=true)'

It can't find the index, and returned:  
{  
"\_index" : "test",  
"\_type" : "index",  
"\_id" : "W9bEV9xWQe63sf0QqUfxnA",  
"exists" : false  
}

Can someone tell my why?

---

<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, 3:06am UTC](https://discuss.elastic.co/t/problem-using-routing-index-search/9554/2 "2017-07-06T03:06:14Z")

</div>


