# ElasticSearch Mapping - Need to stop indexing/analyzing a field

**URL:** <https://discuss.elastic.co/t/elasticsearch-mapping-need-to-stop-indexing-analyzing-a-field/13167>\
**Category:** Elasticsearch\
**Created:** [August 11, 2013, 6:43pm UTC](https://discuss.elastic.co/t/elasticsearch-mapping-need-to-stop-indexing-analyzing-a-field/13167 "2013-08-11T18:43:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![karan](https://avatars.discourse-cdn.com/v4/letter/k/58f4c7/32.png) [@karan](https://discuss.elastic.co/u/karan)\
**Post date:** [August 11, 2013, 6:43pm UTC](https://discuss.elastic.co/t/elasticsearch-mapping-need-to-stop-indexing-analyzing-a-field/13167/1 "2013-08-11T18:43:54Z")

</div>

Hi Everyone,

I needed some help please.  
Each document json has a many fields. One particular field called  
"hotlinks" comprises of many internal dynamic object fields.

Doc1:  
{  
hotlinks : { 112222:{....} , 333333: {.....} , 545555: {.....} }  
}

Doc2:  
{  
hotlinks : { 67756:{....} , 756767: {.....} , 1111111: {.....} }  
}

Each document has a hotlinks fields. The hotlinks field comprises of varied  
inner hotlink objects. Each key is a java unique id and has objects that  
contain data(inner fields)  
Now every time i add a new inner hotlink to a document, the ES mapping get  
updated. This slows down the system.  
Since the inner json objects of "hotlinks" are variable, i do 'not' need  
any indexing on this field.

In the mapping configuration for this index/type, how do i specify that i  
do not need indexing on the hotlinks fields. I am struggling with the  
syntax.

Please help. Really appreciate it.

Thanks,  
Karan

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Boaz\_Leskes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boaz_leskes/32/723_2.png) [@Boaz\_Leskes](https://discuss.elastic.co/u/Boaz_Leskes)\
**Post date:** [August 12, 2013, 6:12am UTC](https://discuss.elastic.co/t/elasticsearch-mapping-need-to-stop-indexing-analyzing-a-field/13167/2 "2013-08-12T06:12:50Z")

</div>

Hi Karan,

You need to set enable=false on the holinks object using the mapping  
( [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/object-type/) )

{  
"YOURTYPE": {  
"properties": {  
"hotlinks": {  
"type": "object",  
"enabled": false  
}  
}  
}  
}

Cheers,  
Boaz

On Sunday, August 11, 2013 8:43:54 PM UTC+2, karan wrote:

> Hi Everyone,
> 
> I needed some help please.  
> Each document json has a many fields. One particular field called  
> "hotlinks" comprises of many internal dynamic object fields.
> 
> Doc1:  
> {  
> hotlinks : { 112222:{....} , 333333: {.....} , 545555: {.....} }  
> }
> 
> Doc2:  
> {  
> hotlinks : { 67756:{....} , 756767: {.....} , 1111111: {.....} }  
> }
> 
> Each document has a hotlinks fields. The hotlinks field comprises of  
> varied inner hotlink objects. Each key is a java unique id and has objects  
> that contain data(inner fields)  
> Now every time i add a new inner hotlink to a document, the ES mapping get  
> updated. This slows down the system.  
> Since the inner json objects of "hotlinks" are variable, i do 'not' need  
> any indexing on this field.
> 
> In the mapping configuration for this index/type, how do i specify that i  
> do not need indexing on the hotlinks fields. I am struggling with the  
> syntax.
> 
> Please help. Really appreciate it.
> 
> Thanks,  
> Karan

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![karan](https://avatars.discourse-cdn.com/v4/letter/k/58f4c7/32.png) [@karan](https://discuss.elastic.co/u/karan)\
**Post date:** [August 12, 2013, 7:32am UTC](https://discuss.elastic.co/t/elasticsearch-mapping-need-to-stop-indexing-analyzing-a-field/13167/3 "2013-08-12T07:32:00Z")

</div>

Hi Boaz,

Thank you so much. This is exactly what i needed.  
Really appreciate your help.

Thanks,  
Karan

On 12 August 2013 11:42, Boaz Leskes [b.leskes@gmail.com](mailto:b.leskes@gmail.com) wrote:

> Hi Karan,
> 
> You need to set enable=false on the holinks object using the mapping (  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/object-type/) )
> 
> {  
> "YOURTYPE": {  
> "properties": {  
> "hotlinks": {  
> "type": "object",  
> "enabled": false  
> }  
> }  
> }  
> }
> 
> Cheers,  
> Boaz
> 
> On Sunday, August 11, 2013 8:43:54 PM UTC+2, karan wrote:
> 
> > Hi Everyone,
> > 
> > I needed some help please.  
> > Each document json has a many fields. One particular field called  
> > "hotlinks" comprises of many internal dynamic object fields.
> > 
> > Doc1:  
> > {  
> > hotlinks : { 112222:{....} , 333333: {.....} , 545555: {.....} }  
> > }
> > 
> > Doc2:  
> > {  
> > hotlinks : { 67756:{....} , 756767: {.....} , 1111111: {.....} }  
> > }
> > 
> > Each document has a hotlinks fields. The hotlinks field comprises of  
> > varied inner hotlink objects. Each key is a java unique id and has objects  
> > that contain data(inner fields)  
> > Now every time i add a new inner hotlink to a document, the ES mapping  
> > get updated. This slows down the system.  
> > Since the inner json objects of "hotlinks" are variable, i do 'not' need  
> > any indexing on this field.
> > 
> > In the mapping configuration for this index/type, how do i specify that i  
> > do not need indexing on the hotlinks fields. I am struggling with the  
> > syntax.
> > 
> > Please help. Really appreciate it.
> > 
> > Thanks,  
> > Karan
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:21am UTC](https://discuss.elastic.co/t/elasticsearch-mapping-need-to-stop-indexing-analyzing-a-field/13167/4 "2017-07-06T02:21:39Z")

</div>


