开发者

Sphinx Filter Limit of 4096

开发者 https://www.devze.com 2023-01-18 16:42 出处:网络
Sphinx MySQL search seems to have a limit to the number of items allowed as an array for SetFilter. I had attempted to use:

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 ch开发者_开发技巧ecking, 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消