# Adding new fields to an existing Index

**URL:** <https://discuss.elastic.co/t/adding-new-fields-to-an-existing-index/7397>\
**Category:** Elasticsearch\
**Created:** [April 19, 2012, 12:06pm UTC](https://discuss.elastic.co/t/adding-new-fields-to-an-existing-index/7397 "2012-04-19T12:06:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Sharma](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@Rahul\_Sharma](https://discuss.elastic.co/u/Rahul_Sharma)\
**Post date:** [April 19, 2012, 12:06pm UTC](https://discuss.elastic.co/t/adding-new-fields-to-an-existing-index/7397/1 "2012-04-19T12:06:08Z")

</div>

Hi,

Is it possible to specify the type and analyzer while adding a new field to  
an existing index?  
Looks like ES identifies automatically the type and uses the default  
analyzer.

Would appropriate your help.

Thanks  
Rahul

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [April 19, 2012, 5:00pm UTC](https://discuss.elastic.co/t/adding-new-fields-to-an-existing-index/7397/2 "2012-04-19T17:00:18Z")

</div>

You can use Put Mapping API to add new fields with proper mapping before  
the first instance of such field is indexed. See

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

for more information.

On Thursday, April 19, 2012 8:06:08 AM UTC-4, Rahul Sharma wrote:

> Hi,
> 
> Is it possible to specify the type and analyzer while adding a new field  
> to an existing index?  
> Looks like ES identifies automatically the type and uses the default  
> analyzer.
> 
> Would appropriate your help.
> 
> Thanks  
> Rahul

---

<div class="post-metadata">

**Author:** ![Rahul\_Sharma](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@Rahul\_Sharma](https://discuss.elastic.co/u/Rahul_Sharma)\
**Post date:** [April 20, 2012, 11:26am UTC](https://discuss.elastic.co/t/adding-new-fields-to-an-existing-index/7397/3 "2012-04-20T11:26:50Z")

</div>

Thanks!! This helps 🙂

On Thu, Apr 19, 2012 at 10:30 PM, Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com) wrote:

> You can use Put Mapping API to add new fields with proper mapping before  
> the first instance of such field is indexed. See  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping.htmlfor) more information.
> 
> On Thursday, April 19, 2012 8:06:08 AM UTC-4, Rahul Sharma wrote:
> 
> > Hi,
> > 
> > Is it possible to specify the type and analyzer while adding a new field  
> > to an existing index?  
> > Looks like ES identifies automatically the type and uses the default  
> > analyzer.
> > 
> > Would appropriate your help.
> > 
> > Thanks  
> > Rahul

---

<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:31am UTC](https://discuss.elastic.co/t/adding-new-fields-to-an-existing-index/7397/4 "2017-07-06T03:31:39Z")

</div>


