Nested become array object after re-indexing?

my mappings:

{
    "mappings":{
        "test":{
            "properties":{
                "date":{
                    "type":"nested",
                    "properties":{....} 
                }
            }
        }
    }   
}

after i reindexing the index, the type of date become normal array object, it's not nested any more. Why ???

My re-index script:
ES.reindex(
{
"source":{
"index":"test"
},
"dest":{
"index":"test-v1"
},
}
)

How did you reindex it?

ES.reindex({
    "source":{
        "index":"test"
    },
    "dest":{
        "index":"test-v1"
   },
})

So the _reindex API.

Did you apply the mapping to the new index before you ran the request? See https://www.elastic.co/guide/en/elasticsearch/reference/6.2/docs-reindex.html

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