Does Zend Lucene need Java Lucene?

纵然是瞬间 提交于 2019-12-06 06:12:11

问题


When implementing Zend Lucene, do we need to install Java on our server or not?


回答1:


Although I have not used it, it appears that you do not need Java to use the Zend_Search_Lucene component. According to the documentation, Zend_Search_Lucene is a fully PHP implementation of Lucene.

However, there is support for interoperability between the Java indexes and the PHP indexes.




回答2:


Zend implementation is the port of java to PHP of Lucene. This is a great approach of Zend.

But the PHP version will lack for big indexes. Remember that if you have a big index, php will need load it each time you call the script that make the search/insert into Lucene. The java version, load the index when the JVM starts and keep it in memory to use it.



来源:https://stackoverflow.com/questions/1254759/does-zend-lucene-need-java-lucene

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!