unknown field [dest], parser not found- error coming while reindexing

馋奶兔 提交于 2019-12-11 09:02:21

问题


While indexing with the following code, error arises as unknown field parser not found:

client.reindex({

         body: {
            script: {
               source: {
                  index: index,
                  type: "_doc",
                  query: {
                     term: {
                        id: id
                     }
                  }
               },
               dest: {
                  index: dest_ind
               }
            }
         }
      }

回答1:


Place dest outside and not nested in script - https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html

client.reindex({
    body: {
          source: {
             index: index,
             type: "_doc",
             query: {
                term: {
                   id: id
                }
             }
       },
       dest: {
            index: dest_ind
        }
    }
 })


来源:https://stackoverflow.com/questions/55487765/unknown-field-dest-parser-not-found-error-coming-while-reindexing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!