如何在Elasticsearch中查询记录中的最大值?

时间:2014-08-26 09:27:19

标签: elasticsearch

我需要在Elasticsearch中获取符合我的条件的所有记录,如下面的查询:

SELECT * FROM table_x AS px
WHERE version = (
    SELECT MAX(version) FROM table_x
    WHERE type=px.type
) AND title LIKE '%title%'

0 个答案:

没有答案