# Added a new field mapping and want to reindex only that field

**URL:** <https://discuss.elastic.co/t/added-a-new-field-mapping-and-want-to-reindex-only-that-field/240886>\
**Category:** Elasticsearch\
**Created:** [July 13, 2020, 4:43am UTC](https://discuss.elastic.co/t/added-a-new-field-mapping-and-want-to-reindex-only-that-field/240886 "2020-07-13T04:43:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ubeta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ubeta/32/70991_2.png) [@Ubeta](https://discuss.elastic.co/u/Ubeta)\
**Post date:** [July 13, 2020, 4:43am UTC](https://discuss.elastic.co/t/added-a-new-field-mapping-and-want-to-reindex-only-that-field/240886/1 "2020-07-13T04:43:26Z")

</div>

Hi!

I have added a new field property to an existing field and now I want to reindex only the newly added field property.

My old index mappings were

```auto
{
 "org_assignee_name" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword"
            },
            "shingle_original" : {
              "type" : "text",
              "analyzer" : "shingle_original",
              "fielddata" : true
            },
            "standard" : {
              "type" : "text",
              "analyzer" : "standard",
              "fielddata" : true
            },
            "standard_shingle" : {
              "type" : "text",
              "analyzer" : "standard_shingle",
              "fielddata" : true
            }
          },
          "fielddata" : true
        },
}

```

I added a new analyzer and added an extra property to the field:

```auto
PUT
{
  "properties": {
    "td_assignee_country_code": {
    "type":"text",
      "fields": {
        "standard_stopwords": {
          "type": "text",
          "analyzer":"standard_stopwords",
          "fielddata":true
        }
      }
    }
  }
}

```

And my new field is:

```auto
{
 "org_assignee_name" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword"
            },
            "shingle_original" : {
              "type" : "text",
              "analyzer" : "shingle_original",
              "fielddata" : true
            },
            "standard" : {
              "type" : "text",
              "analyzer" : "standard",
              "fielddata" : true
            },
            "standard_shingle" : {
              "type" : "text",
              "analyzer" : "standard_shingle",
              "fielddata" : true
            }
          },
          "standard_stopwords" : {
              "type" : "text",
              "analyzer" : "standard_stopwords",
              "fielddata" : true
            },
          "fielddata" : true
        },
}

```

I don't want to reindex the whole index again as my data set is very large and the initial index took about 6 hours.

I have the raw data uploaded already and I was wondering how it is possible to reindex only the newly added field property? That is, only index the 'org\_assignee\_name.standard\_stopwords' from the raw data set and keep the other field properties the same index or ignore it during the reindex process?

Thank you!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 13, 2020, 4:44am UTC](https://discuss.elastic.co/t/added-a-new-field-mapping-and-want-to-reindex-only-that-field/240886/2 "2020-07-13T04:44:51Z")

</div>

> [@Ubeta](#):
>
> I have the raw data uploaded already and I was wondering how it is possible to reindex only the newly added field property?

No, there's not sorry.

---

<div class="post-metadata">

**Author:** ![Ubeta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ubeta/32/70991_2.png) [@Ubeta](https://discuss.elastic.co/u/Ubeta)\
**Post date:** [July 13, 2020, 4:49am UTC](https://discuss.elastic.co/t/added-a-new-field-mapping-and-want-to-reindex-only-that-field/240886/3 "2020-07-13T04:49:49Z")

</div>

Thank you for the speedy reply!

Does that mean that if I were to add a new field property I would have to reindex the whole thing again?

eg.

```auto
current fields:
name.first
name.last

```

add 'name.middle'

```auto
fields: 
name.first
name.last
name.middle

```

I would have to reindex all of name.first, name.last, and name.middle from the raw data from the start and its not possible to only index name.middle while keeping the name.first and name.last indexed data?

Thank you!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 13, 2020, 4:51am UTC](https://discuss.elastic.co/t/added-a-new-field-mapping-and-want-to-reindex-only-that-field/240886/4 "2020-07-13T04:51:15Z")

</div>

If you add in a new field you don't need to.  
If you change a field type, you do.

---

<div class="post-metadata">

**Author:** ![Ubeta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ubeta/32/70991_2.png) [@Ubeta](https://discuss.elastic.co/u/Ubeta)\
**Post date:** [July 13, 2020, 5:20am UTC](https://discuss.elastic.co/t/added-a-new-field-mapping-and-want-to-reindex-only-that-field/240886/5 "2020-07-13T05:20:29Z")

</div>

Hi!

Is a field type a new 'column'?

eg.

```auto
Mapping (name.first, name.last, age.current, age.before, height)
Fields = 3 (name, age, and height)

```

and Field Types are:

```auto
Mapping (name.first, name.last, age.current, age.before, height)
Field Types: 5

```

Is this correct?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 13, 2020, 6:24am UTC](https://discuss.elastic.co/t/added-a-new-field-mapping-and-want-to-reindex-only-that-field/240886/6 "2020-07-13T06:24:18Z")

</div>

It's somewhat like a traditional database column, yes. Obviously there's no table, it's json 🙂

---

<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:** [August 10, 2020, 6:24am UTC](https://discuss.elastic.co/t/added-a-new-field-mapping-and-want-to-reindex-only-that-field/240886/7 "2020-08-10T06:24:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
