你可以的,加油

spark-sql 查询 es 谓词下推 不生效

Elasticsearch | 作者 HarrisJ | 发布于2020年05月11日 | 阅读数:2792

es版本 7.6.2
jar包 elasticsearch-hadoop-7.6.2.jar
spark 版本 2.3.2
 使用hive 创建外部表 
CREATE EXTERNAL TABLE myindex
 (author string, name string, uuid string)
 STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'
 TBLPROPERTIES ('es.nodes'='localhost', 'es.port'='9200', 'es.resource' = 'myindex', 'pushdown' = 'true','es.index.auto.create' = 'false');
当我查询的时候:使用的 是 keyword 等值匹配
select * from myindex where  name = '慕容公子' limit 10;

微信截图_20200511162939.png

 
根据这个 使用 = 应该可以 谓词下推给 es 完成match操作。然后我没有得到。
请问一下,hive查询es 怎么使用match 进行关键词 检索呢
已邀请:

要回复问题请先登录注册