Zend Framework 与 Lucene 8.4.1 的兼容性
我正在使用Lucene 3.5.0进行索引创建。带有PHP-7.1.12的Zend-FrameWork-1.8.2正在用于搜索索引。
我已将卢克纳升级为3.5.0至8.4.1。这些索引现在是使用Lucene 8.4.1创建的。但是搜索索引会出现错误。我相信我需要升级Zend-Framework和PHP。
那么,任何人都可以提供与Lucene 8.4.1索引兼容的Zend-Framework和PHP版本的指针?
I am using Lucene 3.5.0 for index creation. Zend-Framework-1.8.2 with PHP-7.1.12 is being used to search index.
I have upgraded Lucene from 3.5.0 to 8.4.1. The indexes are now created with Lucene 8.4.1. But searching index gives error. I believe I need to upgrade Zend-Framework and PHP.
So, could anyone please provide the pointers on which Zend-Framework and PHP version is compatible to use with Lucene 8.4.1 indexes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧...给你的坏消息。
自多年以来就无法维护有关Lucene的ZEND搜索组件,并且很久以前就已经存档了。即使在Packagist上,包装也被标记为此软件包被放弃并且不再维护。没有建议替换包。
Zend Framework也是如此。甚至Zend Framework 3也不再维护。后续内容是 laminas框架。
我的建议是,您切换到Zend Framework的继任者Laminas。 Laminas框架的大多数组件已经兼容PHP 8.1。与ZendSearch组件说再见。该组件不会进一步开发,并且将来会阻止您将来使用当前的PHP版本。 PHP 7.3已经达到了生命的终结。自2021年12月以来,PHP 7.4仅处于安全性状态,并将在今年年底之前结束。 Zend Framework和ZendSearch在可预见的将来将无法使用,如果他们现在应该工作。
只需使用以下替代方案之一:
Well ... bad news for you.
The Zend Search component concerning Lucene is not maintained since years and has been archived a long time ago. Even on Packagist the package is marked as This package is abandoned and no longer maintained. No replacement package was suggested.
Same goes for Zend Framework. Even Zend Framework 3 is not maintained anymore. The follow up is the Laminas Framework.
My suggestion would be that you switch to Laminas, the successor to Zend Framework. Most components of the Laminas Framework are already PHP 8.1 compatible. Say goodbye to the ZendSearch component. This component is not developed further and will prevent you from using current PHP versions in the future. PHP 7.3 has reached an end of life already. PHP 7.4 is in a security fixes only state since december 2021 and will reach an end of life by end of this year. Zend Framework and ZendSearch will not work for the foreseeable future, if they should work now.
Just use one of the following alternatives: