SphinxQL-偏移超出范围

时间:2019-01-15 00:50:07

标签: sphinx

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

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

版本:Sphinx 3.1.1

1 个答案:

答案 0 :(得分:1)

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

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
相关问题