问题描述
如何使用 ElasticSearch Rest 组件获取所有记录
.setBody(constant("{}"))
.toD("elasticsearch-rest://elasticsearch?operation=${bean:elasticoperation?method=choiceOperation}&indexName=${exchangeProperty.index}&useScroll=true")
其他查询成功
.setBody(constant("{\n" +
" \"query\": {\n" +
" \"match\": {\n" +
" \"_id\": \"XxmGZnoBhq--3N_vqvr5\"\n" +
" }\n" +
" }\n" +
" }"))
.toD("elasticsearch-rest://elasticsearch?operation=${bean:elasticoperation?method=choiceOperation}&indexName=${exchangeProperty.index}&useScroll=true")
例外是
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"query malformed,empty clause found at [1:2]"}],"type":"illegal_argument_exception",empty clause found at [1:2]"},"status":400}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)