【发布时间】:2017-07-26 16:09:16
【问题描述】:
我在管道中使用附件处理器Attachment Processor。
一切正常,但我想做多个帖子,然后我尝试使用bulk 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 以被管道插件理解?
【问题讨论】:
-
这个答案应该会有所帮助:stackoverflow.com/a/41910185/4604579
标签: elasticsearch bulkinsert elasticsearch-plugin