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

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

{
 "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:

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

And my new field is:

{
 "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!

No, there's not sorry.

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.

current fields:
name.first
name.last

add 'name.middle'

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!

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

Hi!

Is a field type a new 'column'?

eg.

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

and Field Types are:

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

Is this correct?

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

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