# Multiple results for parent type

**URL:** <https://discuss.elastic.co/t/multiple-results-for-parent-type/19599>\
**Category:** Elasticsearch\
**Created:** [September 3, 2014, 6:29pm UTC](https://discuss.elastic.co/t/multiple-results-for-parent-type/19599 "2014-09-03T18:29:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joy\_Prakash\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joy_prakash_sharma/32/1304_2.png) [@Joy\_Prakash\_Sharma](https://discuss.elastic.co/u/Joy_Prakash_Sharma)\
**Post date:** [September 3, 2014, 6:29pm UTC](https://discuss.elastic.co/t/multiple-results-for-parent-type/19599/1 "2014-09-03T18:29:49Z")

</div>

Hi  
Following query is always returning found: true  
curl -XGET 'localhost:9200/indexname/type?parent=x' where x is any random  
integer

I'm using the following mapping

curl -XPOST localhost:9200/indexname -d '  
{  
"mappings":{  
"department":{  
"properties" : {  
"department" : {"type" : "string", "store" : true }  
}  
},  
"category":{  
"\_parent" : {  
"type" : "department"  
},  
"properties" : {  
"category" : {"type" : "string", "store" : true },  
"category\_url" : {"type" : "string", "store" : true }  
}  
}  
},  
"settings": {  
"number\_of\_shards" : 1,  
"number\_of\_replicas" : 0  
}  
}  
'

Am I missing something?

--  
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/e9f27146-1264-4cfb-98b9-5f7cc82011b2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e9f27146-1264-4cfb-98b9-5f7cc82011b2%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:04am UTC](https://discuss.elastic.co/t/multiple-results-for-parent-type/19599/2 "2017-07-06T01:04:36Z")

</div>


