# Need to get result from outer object from inner properties

**URL:** <https://discuss.elastic.co/t/need-to-get-result-from-outer-object-from-inner-properties/168345>\
**Category:** Elasticsearch\
**Created:** [February 14, 2019, 6:40am UTC](https://discuss.elastic.co/t/need-to-get-result-from-outer-object-from-inner-properties/168345 "2019-02-14T06:40:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nayan\_mahale](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nayan\_mahale](https://discuss.elastic.co/u/nayan_mahale)\
**Post date:** [February 14, 2019, 6:40am UTC](https://discuss.elastic.co/t/need-to-get-result-from-outer-object-from-inner-properties/168345/1 "2019-02-14T06:40:43Z")

</div>

i have mapping like below,

"name": {  
"properties": {  
"en": {  
"type": "text",  
"fields": {  
"custom": {  
"type": "text",  
"analyzer": "custom\_english"  
},  
"raw": {  
"type": "keyword",  
"index": true  
}  
}  
},  
"hn": {  
"type": "text",  
"fields": {  
"custom": {  
"type": "text",  
"analyzer": "custom\_hindi"  
},  
"raw": {  
"type": "keyword",  
"index": true  
}  
}  
}  
}  
}

i have a data in properties "en" and "hn" respectively,

name:{  
en:"Kodomo Soft & Slim Toothbrush - Dark Pink",  
hn:"कोडोमो सॉफ्ट एंड स्लिम टूथब्रश डार्क पिंक"  
}

and i want to perform query like this,

{

"query": {  
"nested": {  
"path": "products",  
"query": {  
"bool": {  
"must": [  
{  
"match": {  
"products.name": "Kodomo Soft & Slim Toothbrush"  
}  
}  
]  
}  
}  
}  
}  
}

but i get no result , how can i do query like this please help.Thanks

---

<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:** [March 14, 2019, 6:40am UTC](https://discuss.elastic.co/t/need-to-get-result-from-outer-object-from-inner-properties/168345/2 "2019-03-14T06:40:43Z")

</div>

Closed on March 14, 2019, 6:40am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
