SphinxQL - 越界偏移

SphinxQL - offset out of bounds

我有一个奇怪的问题。我想在我的查询中有一个偏移量,不幸的是,当我超过 1000 时它会抛出一个 offset out of bounds (offset=2000, max_matches=1000) 异常。我在这个例子中使用了 LIMIT 2000, 10

我将 max_matches = 100000 添加到配置文件的 searchd 部分并重新启动了服务,不幸的是,这并没有解决问题。我不确定为什么会这样。

版本:Sphinx 3.1.1

当您在配置中添加 max_matches 启动 Sphinx 3.1.1 时,您应该看到

key 'max_matches' was permanently removed from Sphinx configuration. Refer to documentation for details.

在 Sphinx 3 中,您应该改用 "option max_matches=N"。例如:

select * from idx limit 2000, 10 option max_matches=100000