如何将查询从Sql转换为Solr(通过row_number查询)

时间:2014-08-24 17:12:05

标签: solr

我有一个声明sql

WITH cte AS
(   
   SELECT ROW_NUMBER() OVER (PARTITION BY Id ORDER LastDate DESC, ) AS rn, Action  
   FROM TableA                                                  
)
SELECT cte.*
  FROM cte    
WHERE rn = 1
 AND Action <> 1

我怎样才能转换为solr?

0 个答案:

没有答案