# Disabling a field

**URL:** <https://discuss.elastic.co/t/disabling-a-field/6927>\
**Category:** Elasticsearch\
**Created:** [March 7, 2012, 5:37am UTC](https://discuss.elastic.co/t/disabling-a-field/6927 "2012-03-07T05:37:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Waddle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_waddle/32/2608_2.png) [@Mark\_Waddle](https://discuss.elastic.co/u/Mark_Waddle)\
**Post date:** [March 7, 2012, 5:37am UTC](https://discuss.elastic.co/t/disabling-a-field/6927/1 "2012-03-07T05:37:19Z")

</div>

So I have discovered that you can disable an object using the "enabled"  
attribute, as documented at  
[http://www.elasticsearch.org/guide/reference/mapping/object-type.html](http://www.elasticsearch.org/guide/reference/mapping/object-type.html). Is  
it possible to use this on a field? If so, if I set "enabled" : false, will  
it ignore the other attributes like index and store as well?

Thanks,  
Mark

---

<div class="post-metadata">

**Author:** ![Mark\_Waddle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_waddle/32/2608_2.png) [@Mark\_Waddle](https://discuss.elastic.co/u/Mark_Waddle)\
**Post date:** [March 7, 2012, 6:34am UTC](https://discuss.elastic.co/t/disabling-a-field/6927/2 "2012-03-07T06:34:56Z")

</div>

So I tried setting enabled for a field and it was ignored. I guess I can do  
the same thing by just saying "index" : "no".

On Tuesday, March 6, 2012 9:37:19 PM UTC-8, Mark Waddle wrote:

> So I have discovered that you can disable an object using the "enabled"  
> attribute, as documented at  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/object-type.html). Is  
> it possible to use this on a field? If so, if I set "enabled" : false, will  
> it ignore the other attributes like index and store as well?
> 
> Thanks,  
> Mark

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 7, 2012, 11:35am UTC](https://discuss.elastic.co/t/disabling-a-field/6927/3 "2012-03-07T11:35:13Z")

</div>

Right, just set index to "no".

On Wednesday, March 7, 2012 at 8:34 AM, Mark Waddle wrote:

> So I tried setting enabled for a field and it was ignored. I guess I can do the same thing by just saying "index" : "no".
> 
> On Tuesday, March 6, 2012 9:37:19 PM UTC-8, Mark Waddle wrote:
> 
> > So I have discovered that you can disable an object using the "enabled" attribute, as documented at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/object-type.html). Is it possible to use this on a field? If so, if I set "enabled" : false, will it ignore the other attributes like index and store as well?
> > 
> > Thanks,  
> > Mark

---

<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 6, 2017, 3:36am UTC](https://discuss.elastic.co/t/disabling-a-field/6927/4 "2017-07-06T03:36:53Z")

</div>


