首页 > 解决方案 > 如何使用 Apache Pulsar 连接器将 json 文档存储在弹性搜索索引中?

问题描述

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

标签: elasticsearchconnectorapache-pulsar

解决方案


You need to push your data in using a schema.

It is similar to what I did with SOLR.

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

see the java code. make sure you have a schema to get it to land correct

https://vimeo.com/628573854

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

That should work


推荐阅读