Zend Lucene 和 Java Lucene 的性能比较

2024-05-10php开发问题
7

本文介绍了Zend Lucene 和 Java 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.

这篇关于Zend Lucene 和 Java Lucene 的性能比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

PHP实现DeepL翻译API调用
DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以...
2025-08-20 php开发问题
168

PHP通过phpspreadsheet导入Excel日期数据处理方法
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的...
2024-10-23 php开发问题
287

mediatemple - 无法使用 codeigniter 发送电子邮件
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)...
2024-08-23 php开发问题
11

Laravel Gmail 配置错误
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)...
2024-08-23 php开发问题
16

将 PHPMailer 用于 SMTP 的问题
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)...
2024-08-23 php开发问题
4

关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)...
2024-08-23 php开发问题
17