elasticsearch - 如何使用 Apache Pulsar 连接器将 json 文档存储在弹性搜索索引中?
问题描述
我想使用 Apache Pulsar 连接器在 Elasticsearch 中将 JSON 模式存储为 {"name": "Jane", "age": 25, ...}。我尝试使用此https://pulsar.apache.org/docs/en/io-elasticsearch-sink/#configuration,但我只能使用结构 {string: number} 存储 JSON。有人可以帮助我吗?
解决方案
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
That should work
推荐阅读
- javascript - 由于登录用户如何编辑表记录
- laravel - 使用 laravel 连接到亚马逊 aws 时出错
- google-maps - 谷歌地图未显示在百里香中
- c# - 迁移到 Swashbuckle.AspNetCore 版本 5 时,Swagger UI 中的不记名身份验证
- amazon-web-services - 指定位置的脚本:以 root 用户身份运行的脚本/stop_server.sh 失败,退出代码为 126
- compiler-construction - 解析没有参数分隔符的函数参数
- python - 停止索引太多
- ms-access - MS 365 访问表单 Dlookup #Name?
- java - 如何在不覆盖其他孩子的情况下添加新孩子
- c# - 过滤 IQueryable 会带回错误的结果