Select 按计数按查询筛选sphinxql组

Select 按计数按查询筛选sphinxql组,select,count,where,sphinx,sphinxql,Select,Count,Where,Sphinx,Sphinxql,有人知道如何按计数按查询过滤sphinxql组吗? 例如,我有如下查询: SELECT collection_id, count(*) as cnt FROM mobile_content WHERE collection_id != 0 GROUP BY collection_id 我只想得到cnt大于5的行。如果我做了这样的事情,我会得到一个错误: SELECT collection_id, count(*) FROM mobile_content WHERE collectio

有人知道如何按计数按查询过滤sphinxql组吗? 例如,我有如下查询:

SELECT collection_id, count(*) as cnt 
FROM mobile_content 
WHERE collection_id != 0 
GROUP BY collection_id
我只想得到cnt大于5的行。如果我做了这样的事情,我会得到一个错误:

SELECT collection_id, count(*) 
FROM mobile_content 
WHERE collection_id != 0 AND count(*) > 5 
GROUP BY collection_id;

ERROR 1064 (42000): sphinxql: Aggregates in 'where' clause prohibited near '5 GROUP BY collection_id'
我记得在旧版本中,我使用@count按结果过滤分组

我当前的sphinxsearch版本是2.1.5。在此版本中是否可以按计数筛选结果

我当前的sphinxsearch版本是2.1.5。在此版本中是否可以按计数筛选结果

没有

2.2.1-beta中增加了HAVING条款