繁体   English   中英

带有Ingest插件的ElasticSearch Bulk

[英]ElasticSearch Bulk with ingest plugin

我现在用的附件处理器附件处理器的流水线。

一切正常,但是我想做多个发布,然后尝试使用批量API 批量工作也很好,但是我找不到如何发送url参数“ pipeline = attachment”。

这把工程:

POST testindex/type1/1?pipeline=attachment
{
  "data": "Y291Y291",
  "name" : "Marc",
  "age" : 23
}

此批量作品:

POST _bulk
{ "index" : { "_index" : "testindex", "_type" : "type1", "_id" : "2" } }
{ "name" : "jean", "age" : 22 }

但是,如何将Marc的数据字段索引到索引,以供管道插件理解?

感谢Val的评论,我做到了,而且效果很好:

POST _bulk
{ "index" : { "_index" : "testindex", "_type" : "type1", "_id" : "2", "pipeline": "attachment"} } }
{"data": "Y291Y291", "name" : "jean", "age" : 22}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM