我是否必须将 PHP 应用程序转换为 MVC 才能使用 Zend_search_lucene?
我现在已经完成了自己的网络应用程序的编写。它是用 PHP 和 MYSQL DB 编写的,我根本没有使用任何 MVC 框架。现在我想为我的应用程序添加本地搜索功能,通过查看这里的其他帖子,Zend_Search_Lucene 对我来说似乎是一个不错的选择。
现在,如果我想使用 Zend_Search_Lucene,我是否必须安装整个 Zend 框架,然后重新编写我的应用程序并将它们调整到其 MVC 框架中?
我只想使用框架的搜索功能,现在我可能并不介意安装整个框架,但如果我必须对我的应用程序进行大规模更改,我肯定会这样做。
感谢任何答案建议, 谢谢
I have finished writing my own web application now. It is written in PHP with MYSQL DB and I did not use any MVC framework at all. Now I want to add a local search functionality for my app and from looking at the other posts here, Zend_Search_Lucene seems to be a good option for me.
Now if I want to use Zend_Search_Lucene do I have to install the whole Zend framework then re-write my app and adapt them into its MVC framework ?
I am looking to use just the search feature of the framework, and right now I probably do not really mind installing the whole framework, but I surely do if I have to make large-scale changes to my app..
appreciate any answer-suggestion, thx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以只使用 Zend_Search_Lucene 包,不需要使用它的整个框架和/或 MVC 方面。如果您不想安装整个框架,则必须检查 Zend_Search_Lucene 具有的包依赖关系。有一些自动方法可以执行此操作,以下是一些:
如果您谷歌一下你肯定会找到更多。
You can just use the Zend_Search_Lucene package, you don't need to use the whole framework and/or MVC aspect of it. If you don't want to install the whole framework, you have to check package dependencies that Zend_Search_Lucene has. There are some automatic ways of doing this, here are some:
If you google it you'll sure find more.
对于问题的答案:不,您不必更改它,您可以独立使用 Zend Framework 库。
不过,我不会为您提供任何有关 Lucene 的教程。
For the answer to the question: no, you won't have to change it, you may use Zend Framework libraries independently.
I won't give you any tutorials on Lucene, though.