elasticsearch 弹性嵌套映射重新索引,elasticsearch,exception,nested,mapping,reindex,elasticsearch,Exception,Nested,Mapping,Reindex" /> elasticsearch 弹性嵌套映射重新索引,elasticsearch,exception,nested,mapping,reindex,elasticsearch,Exception,Nested,Mapping,Reindex" />

elasticsearch 弹性嵌套映射重新索引

elasticsearch 弹性嵌套映射重新索引,elasticsearch,exception,nested,mapping,reindex,elasticsearch,Exception,Nested,Mapping,Reindex,我创建了一个带有动态映射的弹性文档。默认情况下,elastic不将json数组视为嵌套的,但我希望映射是嵌套的。 作为一个解决方案,我必须创建一个新的索引,将更改映射到嵌套并重新索引所有数据 我这样做了,但在尝试重新索引数据时,elastic给出了非法参数异常。(对象映射[performedActions]不能从嵌套更改为非嵌套) 请正确格式化您的问题。@rishi您能找到解决方案吗? My Earlier Index - `"performedActions" : {

我创建了一个带有动态映射的弹性文档。默认情况下,elastic不将json数组视为嵌套的,但我希望映射是嵌套的。 作为一个解决方案,我必须创建一个新的索引,将更改映射到嵌套并重新索引所有数据

我这样做了,但在尝试重新索引数据时,elastic给出了非法参数异常。(对象映射[performedActions]不能从嵌套更改为非嵌套)


请正确格式化您的问题。@rishi您能找到解决方案吗?
My Earlier Index -    `"performedActions" : {
            "properties" : {
              "actionTs" : {
                "type" : "text",
                "fields" : {
                  "keyword" : {
                    "type" : "keyword",
                    "ignore_above" : 256
                  }
                }
              },`






New One -  ` "performedActions" : {
            "type" : "nested",
            "properties" : {
              "actionTs" : {
                "type" : "text",
                "fields" : {
                  "keyword" : {
                    "type" : "keyword",
                    "ignore_above" : 256
                  }
                }
`

Reindex CURL 

     curl -XPOST 'localhost:9200/_reindex?pretty' -H 'Content-Type: application/json' -d'
{
  "source": {
    "index": "pendingonme"
  },
  "dest": {
    "index": "action"
  }
}