【发布时间】:2019-11-18 03:36:12
【问题描述】:
假设我有这样的弹性搜索实例:
from("direct:index")
.to("elasticsearch://local?operation=INDEX&indexName=twitter&
indexType=tweet"); 我添加了 10 条推文,我怎样才能从 elasticsearch 获取所有这些推文的列表?我试过这样的事情:
from("elasticsearch://local?operation=MULTIGET&indexName=twitter& indexType=tweet").process(new MyProcessor())
.to("direct:somewhere") 但它不起作用,你能帮我做吗?它会在处理器中存储什么类型的数据?
我需要使用 apache camel DSL 获取所有推文的列表,你能帮我吗?
【问题讨论】:
标签: java elasticsearch apache-camel osgi apache-karaf