- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
目前我们正在使用一些自定义类来与 solr 交互,这些类的组织和分层并不整齐。我应该修改它,但我想尝试一下 solr 扩展。
我很想知道当前版本的稳定性、更新频率以及将来我是否会得到持续的支持。我应该依赖这个扩展吗?
最佳答案
您需要查看此链接,它回答了您的所有问题: http://pecl.php.net/package/solr
我目前正在使用 solr 4.x 的 pecl 扩展 2.0.0b,它仍然是 beta 版本,但它非常有用且干净,因此您可以依赖它,但要小心(因为它可能包含错误)。
如果您使用 solr3.x,那么该扩展的 1.0.1 或 1.0.2 版本是稳定的,因此推荐使用。
它有效地简化了使用 PHP5 与 Apache Solr 交互的过程,并且它已经为最新功能做好了内置准备。
该扩展具有内置、可序列化查询字符串构建器对象等功能,可有效简化重复请求中名称-值对请求参数的操作。
来自 Solr 服务器的响应也会自动解析为 native php 对象,其属性可以作为数组键或对象属性进行访问,而无需在客户端进行任何额外配置。
edit: curious to know the stability of current release 2.0.0.x, how frequently it is updated and weather I will get continued support in future. should i depend on this extension.
您可以看到这个链接,显示扩展 2.0.0 或 php-pecl-solr2 确实正在工作并且经常更新:这意味着将会更快地发布稳定版本。将来会支持它,请参阅此链接: http://www.rpmfind.net/linux/rpm2html/search.php?query=php-pecl-solr2
对于在生产中依赖它,它的一位开发人员是这么说的:
version 2.0.0b is tested, however it introduces new functionalities, and some API changes and beta is done mostly so that people can try it and give feedback of any bugs or errors + so people can transition smoothly from the old API to the new one, so general rule, beta versions shall not be used in production. by Omar A. Shaban
关于php - 我可以将 solr pecl 扩展用于生产应用程序吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23490705/
我在我的 PHP 设置中安装了两个 PECL,当我执行 php -V 时,我可以看到它们都在运行。在我的 /etc/php5/conf.d/ 文件夹中,这两个 PECL 都已启用。当我检查 phpin
我通过 macports 使用 fpm + nginx + mysql 安装 php5.3.6。但我在其中找不到 pecl 或 pecl_http。 我搜索并用谷歌搜索,但一无所获。 一些扩展可以被编
我正在设置 couchbase,但是当我尝试通过运行命令 sudo pecl install couchbase 安装 Couchbase PHP 扩展时,它失败并出现错误 ERROR: failed
所以我在本地安装了 pecl oauth 模块,一切正常。然后我尝试为生产服务器执行此操作但遇到了一些问题。 如果我说 sudo pecl install oauth,我会得到这个错误: No rel
从 PHP5.2.6 升级到 php 5.3 后。它接缝,我还必须重新安装 PHP 内存缓存模块。所以我下载了最新版本的 memcache (3.0.6) 并遵循了这个文档: http://www.p
我浏览了每一个谷歌结果,阅读了所有关于这个错误的论坛帖子,但我无法解决它。 当使用 PECL 安装任何东西时,我总是会得到这个错误: checking whether the C compiler w
我正在尝试在我的 macbook pro 上的终端中运行以下命令 cd /tmp; pecl download memcached 但是我得到了 pecl:command not found. 经过几
我正在尝试使用 pecl 为 PHP 安装 event 扩展。在安装过程中,我收到几个提示: Enable internal debugging in Event [no] : Enable sock
我正在为新的 Amazon Elastic Beanstalk 集群设置默认实例,但是我在通过 pecl 安装 gearman php 客户端时遇到问题。 我跑了pecl install mongo没
是否可以列出 pecl 包的所有版本?pecl search xdebug例如,只列出最新的 3.0.1 版本。但我想要最新的 2.x 版本。 最佳答案 pear 命令行安装程序(在 pecl 后面)
我正在尝试使用 pecl 安装 zipArchive。运行命令后,我收到错误 - “请重新安装 libzip 发行版”。 我在 Amazon Linux 2 上运行 PHP 7.2。 这是我的输出:
我正在尝试使用 pecl 安装 zipArchive。运行命令后,我收到错误 - “请重新安装 libzip 发行版”。 我在 Amazon Linux 2 上运行 PHP 7.2。 这是我的输出:
在我开始之前,我知道 phpseclib 并且我已经准备好它是您通常应该采用的方式。不幸的是,我正在处理一个较旧的脚本,并且我试图避免设置 phpseclib、在本地环境中进行测试、投入生产、在生产中
我正在使用一些 PHP 5.1 代码,这些代码不适用于较新版本的 PHP,但我想使用 memcache 扩展。我不确定如果我使用 PECL 是否会安装其他软件包、升级软件包或删除软件包,如果确实如此,
如果是否安装了 PECL 扩展,我如何从 PHP 代码中获取? 我想优雅地处理未安装扩展程序的情况。 最佳答案 我认为正常的方法是使用 extension-loaded . if (!extensio
我已经使用命令安装了 pecl/solr, pecl install solr 和 pear 使用 wget http://pear.php.net/go-pear.phar php go-pear.
我在 Debian Squeeze 上运行 PHP5.3,安装很顺利。我使用 dotdeb 存储库升级到 PHP5.4,发现 bbcode 函数不再有效。然后我尝试重新安装: pecl uninsta
您好,我在安装 pecl 时遇到问题,我遇到的问题是我正在安装 gearman ,我现在正处于安装 pecl PHP 扩展的阶段。 执行命令应该很简单: $ sudo pecl install gea
我正在 Travis 上运行 pecl install redis,但它挂起: enable igbinary serializer support? [no] : 如何设置或跳过此配置? 最佳答案
我刚刚在 Ubuntu Natty 上从源代码安装了 PHP。 我正在尝试使用 PECL 安装其他模块,例如 APC 和 Memcache。我正在使用这样的东西: pecl install apc 但
我是一名优秀的程序员,十分优秀!