# Searching term in subdocuments with elasticsearch

**URL:** <https://discuss.elastic.co/t/searching-term-in-subdocuments-with-elasticsearch/9523>\
**Category:** Elasticsearch\
**Created:** [November 2, 2012, 7:01am UTC](https://discuss.elastic.co/t/searching-term-in-subdocuments-with-elasticsearch/9523 "2012-11-02T07:01:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cubuzoa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cubuzoa/32/2648_2.png) [@cubuzoa](https://discuss.elastic.co/u/cubuzoa)\
**Post date:** [November 2, 2012, 7:01am UTC](https://discuss.elastic.co/t/searching-term-in-subdocuments-with-elasticsearch/9523/1 "2012-11-02T07:01:53Z")

</div>

I have a index document structure like below;{ "term":"some term",  
"inlang":"some lang" "translations" : { {  
"translation":"some translation", "outlang":"some lang",  
"translations" : { { "translation":"some  
translation 1" "outlang": "some lang 1"  
"translations" : {...} } } }, ... } }I  
want to find a translation in such documents. However, this translation can  
exists at any level of this document. Is it possible to search term  
dynamically by using elasticsearch?For example,{ "query": {  
"\*.translation":"searchterm" }}Thanks in advance

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/Searching-term-in-subdocuments-with-elasticsearch-tp4024720.html](http://elasticsearch-users.115913.n3.nabble.com/Searching-term-in-subdocuments-with-elasticsearch-tp4024720.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--

---

<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/searching-term-in-subdocuments-with-elasticsearch/9523/2 "2017-07-06T03:06:28Z")

</div>


