0
有谁知道如何通过count过滤查询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 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。在这个版本中是否可以通过计数来过滤结果?