Home >Backend Development >PHP Tutorial >coreseek 或者 sphinx 的 SetLimits问题

coreseek 或者 sphinx 的 SetLimits问题

WBOY
WBOYOriginal
2016-06-06 20:46:341072browse

<code class="lang-php">$sphinx->SetLimits(0,1);
$sphinx->SetLimits(1,1);
</code>

上面出来的结果为同一个matches

但是

<code class="lang-php">$sphinx->SetLimits(0,2);
</code>

matches 明明有2条
求解

回复内容:

<code class="lang-php">$sphinx->SetLimits(0,1);
$sphinx->SetLimits(1,1);
</code>

上面出来的结果为同一个matches

但是

<code class="lang-php">$sphinx->SetLimits(0,2);
</code>

matches 明明有2条
求解

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn