Sphinx 过滤器限制为 4096
Sphinx MySQL 搜索似乎对 SetFilter 允许作为数组的项目数量有限制。
我曾尝试使用:
foreach (array_chunk($venues, 4096) as $value)
{
$sphinx->SetFilter('venue', $value);
}
但经过检查,这似乎并不能解决问题。
有什么想法可以使用 Sphinx 和 PHP 库来绕过这个限制吗?
Sphinx MySQL search seems to have a limit to the number of items allowed as an array for SetFilter.
I had attempted to use:
foreach (array_chunk($venues, 4096) as $value)
{
$sphinx->SetFilter('venue', $value);
}
But upon checking, this doesn't seem to fix the problem.
Any ideas how using Sphinx and the PHP library I am able to get around this limit?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过在 sphinx 中查看配置文件值:
http:// sphinxsearch.com/docs/current.html#conf-max-filter-values
应该能够调整这一点,我可能是错的,但我认为限制是 sphinx 设置了值而不是 PHP 库。
Have you tried looking at your config file values within sphinx for:
http://sphinxsearch.com/docs/current.html#conf-max-filter-values
Should be able to tweak that, I may be wrong but I think the limit is sphinx having a value set rather than the PHP library.