# Getting field name

**URL:** <https://discuss.elastic.co/t/getting-field-name/58089>\
**Category:** Elasticsearch\
**Created:** [August 16, 2016, 4:56am UTC](https://discuss.elastic.co/t/getting-field-name/58089 "2016-08-16T04:56:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aayush\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aayush_sharma/32/11389_2.png) [@Aayush\_Sharma](https://discuss.elastic.co/u/Aayush_Sharma)\
**Post date:** [August 16, 2016, 4:56am UTC](https://discuss.elastic.co/t/getting-field-name/58089/1 "2016-08-16T04:56:14Z")

</div>

We have following example :

In the example :

{  
"tweet": [elasticsearch, flexible, very],  
"[user.id](http://user.id)": [@jsmith],  
"user.gender": [male],  
"user.age": [26],  
"user.name.full": [john, smith],  
"user.name.first": [john],  
"user.name.last": [smith]  
}

If the user searched for “john”, the search result will have [user.name.full, user.name.first] as field names in the response.

Is it possible? if so can someone give direction?

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:** [July 5, 2017, 10:27pm UTC](https://discuss.elastic.co/t/getting-field-name/58089/2 "2017-07-05T22:27:36Z")

</div>

Closed on July 5, 2017, 10:27pm UTC


