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.
我已经在我的服务器上设置了 Solr,并加载了一个测试集合。
无需安装任何其他东西,我就可以使用 Solr URL 和 JSON 解码很好地搜索集合file_get_contents($url)。
file_get_contents($url)
为了添加/更新/删除文档,我需要安装 PHP Solr 客户端吗?还是有一种标准使用的本机方式?如果是前者,这是要安装的吗?:http ://www.php.net/manual/en/book.solr.php - 或者你能推荐另一个吗?为什么?
在我的公司中,我们已经成功地使用了您刚才提到的 PHP 原生 Solr 客户端。我还发现 Solarium 很有帮助,但它有其局限性,因此可能值得研究使用 Guzzle、Httpful 等 HTTP 请求工具。
检查以下链接:
集成 SOLR - 维基
SOLR PHP - 官方客户端库
链接下载 SOLR php 客户端库