【问题标题】:How to consume a document in attachment pipeline using elasticsearch ruby?如何使用 elasticsearch ruby​​ 在附件管道中使用文档?
【发布时间】:2018-10-08 10:13:28
【问题描述】:

我正在尝试在 elasticsearch 管道中附加一个文档,但我没有任何方法。

对于这个电话 -

PUT my_index/my_type/my_id?pipeline=attachment
{
  "data": "e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0="
}

如果你知道,请告诉我。

提前致谢。

【问题讨论】:

    标签: elasticsearch elasticsearch-ruby


    【解决方案1】:

    这应该可行:

    client.index index: 'my_index', type: 'my_type', id: 'my_id', pipeline: 'attachment', body: { data: 'e1...H0=' }
    

    【讨论】:

    • 太好了,很高兴它有帮助!
    猜你喜欢
    • 2018-10-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-03
    • 1970-01-01
    • 2017-11-07
    • 1970-01-01
    相关资源
    最近更新 更多