gpt4 book ai didi

elasticsearch - 带有Ingest插件的ElasticSearch Bulk

转载 作者:行者123 更新时间:2023-12-02 23:24:02 25 4
gpt4 key购买 nike

我正在管道中使用附件处理器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的数据字段索引成索引,以供管道插件理解?

最佳答案

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

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

关于elasticsearch - 带有Ingest插件的ElasticSearch Bulk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45332248/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com