开发者

Sphinx Filter Limit of 4096

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜