I tried
SELECT count(*) as count FROM rt_item WHERE MATCH('') AND sale between 1 and 2;
and got many rows. But sphinx complains
ERROR 1064 (42000): sphinxql: syntax error, unexpected BETWEEN, expecting IN near 'between 1 and 2'
when I tried
SELECT count(*) as count FROM rt_item WHERE MATCH('') AND sale not between 1 and 2;
I searched Sphinx official document, which says :
WHERE clause. This clause will map both to fulltext query and filters. Comparison operators (=, !=, <, >, <=, >=), IN, AND, NOT, and BETWEEN are all supported and map directly to filters. OR is not supported yet but will be in the future. MATCH('query') is supported and maps to fulltext query.
But it has no example about NOT BETWEEN. Can anybody tell me whether sphinxql support NOT BETWEEN? If if supports, what's the correct grammar?