# Index=not\_analyzed Vs analyser=keyword

**URL:** <https://discuss.elastic.co/t/index-not-analyzed-vs-analyser-keyword/58956>\
**Category:** Elasticsearch\
**Created:** [August 25, 2016, 4:35pm UTC](https://discuss.elastic.co/t/index-not-analyzed-vs-analyser-keyword/58956 "2016-08-25T16:35:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranay.pramod](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@pranay.pramod](https://discuss.elastic.co/u/pranay.pramod)\
**Post date:** [August 25, 2016, 4:35pm UTC](https://discuss.elastic.co/t/index-not-analyzed-vs-analyser-keyword/58956/1 "2016-08-25T16:35:04Z")

</div>

Since I know my data well enough, I am trying to create a mapping upfront for my index  
The field type am talking is string.

Here is a snippet of the mapping I am trying

```
PUT my_index
{
  "mappings": {
    "emp_type": {
      "properties": {
        "name": {
          "type": "string"
         }
      }
    }
  }
}

```

I want to be able to query my index by the name, as is. I don't want any analysis to be performed.  
For example if my name is "foo Bar", I want to be able to query only by "foo Bar".  
Not sure how `index=not_analyzed` will be different from `analyser=keyword` in this case.

---

<div class="post-metadata">

**Author:** ![thn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thn/32/8061_2.png) [@thn](https://discuss.elastic.co/u/thn)\
**Post date:** [August 25, 2016, 5:23pm UTC](https://discuss.elastic.co/t/index-not-analyzed-vs-analyser-keyword/58956/2 "2016-08-25T17:23:46Z")

</div>

they are almost the same

[http://elasticsearch-users.115913.n3.nabble.com/Help-understanding-keyword-vs-not-analyzed-td4028283.html](http://elasticsearch-users.115913.n3.nabble.com/Help-understanding-keyword-vs-not-analyzed-td4028283.html)

---

<div class="post-metadata">

**Author:** ![pranay.pramod](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@pranay.pramod](https://discuss.elastic.co/u/pranay.pramod)\
**Post date:** [August 25, 2016, 7:08pm UTC](https://discuss.elastic.co/t/index-not-analyzed-vs-analyser-keyword/58956/3 "2016-08-25T19:08:24Z")

</div>

interesting...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:25pm UTC](https://discuss.elastic.co/t/index-not-analyzed-vs-analyser-keyword/58956/4 "2017-07-05T22:25:09Z")

</div>


