# How can I specify "not\_analyzed" for a specific nested object in my document?

**URL:** https://discuss.elastic.co/t/how-can-i-specify-not-analyzed-for-a-specific-nested-object-in-my-document/45837
**Category:** Elasticsearch
**Created:** [March 30, 2016, 6:07pm UTC](https://discuss.elastic.co/t/how-can-i-specify-not-analyzed-for-a-specific-nested-object-in-my-document/45837 "2016-03-30T18:07:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![patrick99e99](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patrick99e99/32/609_2.png) [@patrick99e99](https://discuss.elastic.co/u/patrick99e99)
#### Post date: [March 30, 2016, 6:07pm UTC](https://discuss.elastic.co/t/how-can-i-specify-not-analyzed-for-a-specific-nested-object-in-my-document/45837/1 "2016-03-30T18:07:25Z")

</div>

If I have a mapping like this:

```
{
  mappings: {
    'my_index': {
		properties: {
			i_want_analyzed: {
			  index: "my_analyzer",
			  properties {
			    some_field: {
				  type: 'string'
				}
			  }
			},
			i_do_not_want_analyzed: {
			  index: "not_analyzed",
			  properties {
			    some_other_field: {
				  type: 'string'
				}
			  }				
			}
		}
	}

```

Why does this not work? How can I make it so that non-explicit fields that get added under the "i\_do\_not\_want\_analyzed" will automatically be "not\_analyzed", where fields added under "i\_want\_analyzed" will not get that behavior?

---

<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:03pm UTC](https://discuss.elastic.co/t/how-can-i-specify-not-analyzed-for-a-specific-nested-object-in-my-document/45837/2 "2017-07-05T23:03:57Z")

</div>


