# Searching non-analyzed formatted strings

**URL:** <https://discuss.elastic.co/t/searching-non-analyzed-formatted-strings/36060>\
**Category:** Elasticsearch\
**Created:** [December 1, 2015, 2:49pm UTC](https://discuss.elastic.co/t/searching-non-analyzed-formatted-strings/36060 "2015-12-01T14:49:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zaid\_Amir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaid_amir/32/54679_2.png) [@Zaid\_Amir](https://discuss.elastic.co/u/Zaid_Amir)\
**Post date:** [December 1, 2015, 2:49pm UTC](https://discuss.elastic.co/t/searching-non-analyzed-formatted-strings/36060/1 "2015-12-01T14:49:07Z")

</div>

Hi,

I am trying to create a simple index where it contains among its field a String/Object field that holds a formatted document like JSON or XML, call it a payload field if you will. I do not need to analyze that field but instead I will search on it using phrase queries.

What format is suitable for that field that is most certain to work best with phrase queries, JSON, XML, YML, etc?

---

<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, 11:34pm UTC](https://discuss.elastic.co/t/searching-non-analyzed-formatted-strings/36060/2 "2017-07-05T23:34:26Z")

</div>

Closed on July 5, 2017, 11:34pm UTC


