Zend Lucene 和 Java Lucene 的性能比较

2022-01-15 00:00:00 lucene php zend-search-lucene

Zend Lucene 和 Java Lucene 是用 PHP 构建的分别是java,PHP语言的层次比java高.

Zend Lucene and Java Lucene are built in PHP and java repectively, and PHP language has a higher level than java.

只是想知道这两者在索引构建和数据搜索方面的性能差异有多大?

Just wondering How big the performance difference among these two, regarding to index building and data searching?

让java创建和重建索引,让php使用索引是否更有效?

Is it much more effective to let java create and rebuild index, and let php use the index?

推荐答案

这是来自 Zend 认证工程师的一句话.

This is a quote from a Zend Certified Engineer.

根据我更好的判断,我工作的公司迁移了我们的以前的搜索解决方案Zend_Search_Lucene.在漂亮重型硬件,索引百万份文件花了几个小时,并且搜索速度相对较慢.这索引过程消耗大量内存和索引频繁已损坏(使用 1.5.2).一个单通配符搜索字面意思让网络服务器瘫痪,所以我们禁用了该功能.记忆搜索的使用率非常高,并且结果每秒请求数必然像我们一样严重下降减少 Apache 子节点的数量进程.

Against my better judgment, the company I work for migrated our previous search solution to Zend_Search_Lucene. On pretty heavy-duty hardware, indexing a million documents took several hours, and searches were relatively slow. The indexing process consumed vast amounts of memory, and the indexes frequently became corrupted (using 1.5.2). A single wild card search literally brought the web server to its knees, so we disabled that feature. Memory usage was very high for searches, and as a result requests per second necessarily declined heavily as we had to reduce the number of Apache child processes.

我们已经搬到 Solr (a基于 Lucene 的 Java 搜索服务器)和差异是巨大的.索引现在大约需要 10 分钟搜索速度快如闪电.什么不同的语言.

We have since moved to Solr (a Lucene-based Java search server) and the difference is dramatic. Indexing now takes around 10 minutes and searches are lightning fast. What a difference a language makes.

原创文章

在这种情况下,Java.

In this case, Java.

相关文章