# Can I make Elasticsearch stringify an inner object?

**URL:** <https://discuss.elastic.co/t/can-i-make-elasticsearch-stringify-an-inner-object/47401>\
**Category:** Elasticsearch\
**Created:** [April 14, 2016, 2:28pm UTC](https://discuss.elastic.co/t/can-i-make-elasticsearch-stringify-an-inner-object/47401 "2016-04-14T14:28:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralphlevan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ralphlevan/32/5580_2.png) [@ralphlevan](https://discuss.elastic.co/u/ralphlevan)\
**Post date:** [April 14, 2016, 2:28pm UTC](https://discuss.elastic.co/t/can-i-make-elasticsearch-stringify-an-inner-object/47401/1 "2016-04-14T14:28:08Z")

</div>

I have the classic structured name problem.  
`"name":{ "first":"washington", "last":"irving" }`  
I'd like to be able to do a phrase search for "washington irving" and not get "irving washington".

The standard solution is to copy the "first" and "last" fields into another field and index that, but there's no guarantee of the order and proximity becomes unreliable. What I'd like is for my tokenizer to be passed the stringified "name" and let me pull the words out in the order I want.

Is there any way to make this happen?

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:59pm UTC](https://discuss.elastic.co/t/can-i-make-elasticsearch-stringify-an-inner-object/47401/2 "2017-07-05T22:59:12Z")

</div>


