【问题标题】:How store a json document in an elasticsearch index using the Apache Pulsar connector?如何使用 Apache Pulsar 连接器将 json 文档存储在弹性搜索索引中?
【发布时间】:2021-06-04 14:25:54
【问题描述】:

我想使用 Apache Pulsar 连接器在 Elasticsearch 中将 JSON 模式存储为 {"name": "Jane", "age": 25, ...}。我尝试使用这个https://pulsar.apache.org/docs/en/io-elasticsearch-sink/#configuration,但我只能存储结构为 {string: number} 的 JSON。 有人可以帮助我吗?

【问题讨论】:

    标签: elasticsearch connector apache-pulsar


    【解决方案1】:

    您需要使用架构推送数据。

    这与我对 SOLR 所做的类似。

    https://github.com/tspannhw/FLIp-Solr

    查看java代码。确保你有一个架构来让它正确着陆

    https://vimeo.com/628573854

    https://www.slideshare.net/bunkertor/real-time-cloud-native-open-source-streaming-of-any-data-to-apache-solr

    应该可以的

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-28
      • 2016-04-20
      • 1970-01-01
      • 2017-07-07
      相关资源
      最近更新 更多