【发布时间】:2019-01-12 23:22:21
【问题描述】:
我是 Elasticsearch 的初学者。我最近将我的搜索数据库从 MySQL 更改为 Elasticsearch,但我无法转换我的查询之一。查询如下。
select * from table
where (col1 = "a" and col2 = "b")
or (col1 = "c" and col2 = "d")
and col3 = "z";
【问题讨论】:
-
您是否希望从
sql转换为spring-data-elasticsearch或从sql转换为elasticsearch,如@user3775217 答案?在提出这类问题之前,您应该查看一些 Elasticsearch 和 Spring 数据 es 文档
标签: spring-boot elasticsearch elasticsearch-5 spring-data-elasticsearch