【问题标题】:How to search multiple indices using elasticsearch hadoop如何使用 elasticsearch hadoop 搜索多个索引
【发布时间】:2016-06-05 00:15:01
【问题描述】:

假设以下情景:我们有以下索引 index-1、index-2、index-4,是的,由于某种原因,'index-3' 被遗漏了,因为在搜索期间我不知道,所以我'我想在http请求中搜索“index-1,index-2,index-3,index-4”这样的索引模式,我可以设置选项“ignore_unavailable”来忽略丢失的索引。

但是如何使用“org.elasticsearch.hadoop.mr.EsInputFormat”达到同样的效果呢?如果我将 [es.resource.read] 设置为“index-1,index-2,index-3,index-4”,作业将因找不到索引异常而失败。将 "es.index.read.missing.as.empty" 设置为 true 时,即使索引模式中的某些索引存在,结果也会变为空。

【问题讨论】:

    标签: hadoop elasticsearch elasticsearch-hadoop


    【解决方案1】:

    这听起来像是一个应该在他们的GH Page 上提交的错误

    【讨论】:

      猜你喜欢
      • 2018-01-12
      • 1970-01-01
      • 2018-05-29
      • 2021-08-12
      • 1970-01-01
      • 1970-01-01
      • 2022-06-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多