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.
嗨,我使用“setResultSetLimit(1000) ”方法将结果限制为 1000 条记录。好处是它有助于节省服务器资源,但无法获得查询的完整记录数。有人知道如何获得完整的命中数吗?
德克萨斯州
答案太简单了还是我没看懂问题?
$results = $index->find("saerch term"); echo count($results); // you will get count
它不可能在我的尝试范围内......
我建议你制作一个完整的搜索存储结果,可能会制作一个缓存文件或会话,并使用 zend_paginator 数组适配器