# Search behavior when type is text or keyword in elasticsearch 5.0 and greater

**URL:** https://discuss.elastic.co/t/search-behavior-when-type-is-text-or-keyword-in-elasticsearch-5-0-and-greater/219975
**Category:** Elasticsearch
**Created:** [February 19, 2020, 1:43pm UTC](https://discuss.elastic.co/t/search-behavior-when-type-is-text-or-keyword-in-elasticsearch-5-0-and-greater/219975 "2020-02-19T13:43:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![raghubhai](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@raghubhai](https://discuss.elastic.co/u/raghubhai)
#### Post date: [February 19, 2020, 1:43pm UTC](https://discuss.elastic.co/t/search-behavior-when-type-is-text-or-keyword-in-elasticsearch-5-0-and-greater/219975/1 "2020-02-19T13:43:44Z")

</div>

Hi,  
How does elasticsearch differ in search when certain text are given.  
For eg: if name="Test@@" is escape sequence required for searching.  
If so then if name="Test @" behaves differently because it does not require escape sequence, and  
is @ require a escape sequence????  
Kindly help.

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [February 19, 2020, 2:01pm UTC](https://discuss.elastic.co/t/search-behavior-when-type-is-text-or-keyword-in-elasticsearch-5-0-and-greater/219975/2 "2020-02-19T14:01:42Z")

</div>

You can use the [Analyze API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-analyze.html) to figure out how text is analyzed for a search query or how it is stored in the inverted index.

---

<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: [March 18, 2020, 2:01pm UTC](https://discuss.elastic.co/t/search-behavior-when-type-is-text-or-keyword-in-elasticsearch-5-0-and-greater/219975/3 "2020-03-18T14:01:46Z")

</div>

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