Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想以这样一种方式自定义 sphinx 搜索,以便我可以在内存中保留尽可能多的记录。
我收到以下错误:
searchd 错误(状态:1):每个查询 max_matches=25000 超出范围(每个服务器 max_matches=1000)
在您的情况下,我建议max_matches在服务器端设置为 100000。
max_matches
即使您需要更多,您也可以随时使用limit N,M来获取结果集的切片而不会超出范围。
limit N,M
以我的经验,人类在搜索结果中不会超过 10-20 页,因此 100K 应该绰绰有余。