# Reindex doesn't work properly after adding a new field to multi-fields

**URL:** <https://discuss.elastic.co/t/reindex-doesnt-work-properly-after-adding-a-new-field-to-multi-fields/150597>\
**Category:** Elasticsearch\
**Created:** [October 1, 2018, 6:45pm UTC](https://discuss.elastic.co/t/reindex-doesnt-work-properly-after-adding-a-new-field-to-multi-fields/150597 "2018-10-01T18:45:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhaoyang\_Shao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zhaoyang_shao/32/36047_2.png) [@Zhaoyang\_Shao](https://discuss.elastic.co/u/Zhaoyang_Shao)\
**Post date:** [October 1, 2018, 6:45pm UTC](https://discuss.elastic.co/t/reindex-doesnt-work-properly-after-adding-a-new-field-to-multi-fields/150597/1 "2018-10-01T18:45:43Z")

</div>

ES version: 6.3

Settings:

```auto
{
    "settings": {
        "number_of_shards": 1,
        "analysis": {
            "tokenizer": {
                "edge_ngram_tokenizer": {
                    "type": "edgeNGram",
                    "min_gram": "1",
                    "max_gram": "20",
                    "token_chars": [
                        "letter",
                        "digit"
                    ]
                }
            },
            "analyzer": {
                "nGram_analyzer": {
                    "type": "custom",
                    "tokenizer": "edge_ngram_tokenizer",
                    "filter": [
                        "lowercase",
                        "trim",
                        "asciifolding"
                    ]
                }
            },
            "normalizer": {
                "icu_normalizer": {
                    "type": "custom",
                    "char_filter": [
                        
                    ],
                    "filter": [
                        "icu_normalizer",
                        "trim"
                    ]
                }
            }
        }
    }
}

```

old index:

```auto
{
    "name": {
        "type": "text",
        "fields": {
            "keyword": {
                "type": "keyword",
                "normalizer": "icu_normalizer"
            }
        },
        "analyzer": "standard"
    }
}

```

new index (add a new field under "name"):

```auto
{
    "name": {
        "type": "text",
        "fields": {
            "autocomplete": {
                "type": "text",
                "analyzer": "nGram_analyzer"
            },
            "keyword": {
                "type": "keyword",
                "normalizer": "icu_normalizer"
            }
        },
        "analyzer": "standard"
    }
}

```

when I reindexed data from old\_index to new\_index, same query on "name" field itself doesn't return same results, it means the data in new\_index are not analyzed correctly

---

<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:** [October 29, 2018, 6:45pm UTC](https://discuss.elastic.co/t/reindex-doesnt-work-properly-after-adding-a-new-field-to-multi-fields/150597/2 "2018-10-29T18:45:45Z")

</div>

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