Sphinx搜索max_matches错误

Ram*_*aja 4 search sphinx thinking-sphinx

我想以这样的方式自定义sphinx搜索,以便我可以在内存中保留尽可能多的记录.

我收到了以下错误:

searchd error(status:1):per-query max_matches = 25000 out of bounds(per-server max_matches = 1000)

Iar*_*hko 7

在你的情况下,我建议max_matches在服务器端设置为100000.

即使您需要更多,也可以始终使用limit N,M获取结果集切片而不会超出范围.

根据我的经验,人类在搜索结果中不会超过10-20页,所以100K应该绰绰有余.