# Elasticsearch 5 not\_analyzed

**URL:** <https://discuss.elastic.co/t/elasticsearch-5-not-analyzed/68411>\
**Category:** Elasticsearch\
**Created:** [December 8, 2016, 9:10am UTC](https://discuss.elastic.co/t/elasticsearch-5-not-analyzed/68411 "2016-12-08T09:10:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![svarup](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@svarup](https://discuss.elastic.co/u/svarup)\
**Post date:** [December 8, 2016, 9:10am UTC](https://discuss.elastic.co/t/elasticsearch-5-not-analyzed/68411/1 "2016-12-08T09:10:56Z")

</div>

How to save exact(without analyzed) value in elasticsearch 5 and also make that value queryable.

In elasticsearch 2 there is option not\_analyzed, but what about in 5?

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [December 8, 2016, 11:51am UTC](https://discuss.elastic.co/t/elasticsearch-5-not-analyzed/68411/2 "2016-12-08T11:51:41Z")

</div>

IF you are talking about `string` fields, these have been replaced in 5.0 by `keyword` and `text` fields. keyword fields index the exact value of the field as a single token similar to how `string` fields used to work with `index: not_analyzed`, text fields tokenize the field and index the tokens similar to how `string` fields used to work with `index: analyzed`. More information can be found here: [https://www.elastic.co/guide/en/elasticsearch/reference/5.0/breaking\_50\_mapping\_changes.html#\_literal\_string\_literal\_fields\_replaced\_by\_literal\_text\_literal\_literal\_keyword\_literal\_fields](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/breaking_50_mapping_changes.html#_literal_string_literal_fields_replaced_by_literal_text_literal_literal_keyword_literal_fields)

---

<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:** [January 5, 2017, 11:52am UTC](https://discuss.elastic.co/t/elasticsearch-5-not-analyzed/68411/3 "2017-01-05T11:52:06Z")

</div>

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