从命令提示符运行elasticsearch-reindexer时出错

时间:2017-02-27 07:37:40

标签: elasticsearch

elasticsearch-reindex -f http://localhost:9200/artist -t http://localhost:9200/painter

将错误视为:

TypeError:无效的主机配置。预期URL,URL数组,主机配置对象或主机配置对象数组。 工人退出时出现错误代码:1 重新索引成功完成。

1 个答案:

答案 0 :(得分:0)

你真的需要一个插件吗?

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

这应该可以正常工作。更多选项和信息here