1

I am usign SphinxQL to query Sphinx RT indexes. Found that queries return 20 matches at most (20 seems to be a default value).

Tried adding options the SELECT query to change that limit to 1000:

SELECT [...] OPTION cutoff = 1000, max_matches = 1000

But got same results.

Is there a way to override the 20 matches result limitation using SphinxQL?

4

1 回答 1

3

您是否尝试过 LIMIT 子句?

从文档:

限制条款。支持 LIMIT N 和 LIMIT M,N 形式。与常规 SQL 不同(但与 Sphinx API 类似),默认情况下存在隐式 LIMIT 0,20。

http://sphinxsearch.com/docs/current.html#sphinxql-select

于 2012-11-30T12:59:29.393 回答