Performance Comparison between Zend Lucene and Java Lucene

Zend Lucene and Java Lucene are embedded in PHP and java, respectively, and the PHP language has a higher level than java.

Just wondering how big the performance difference is between the two in terms of building an index and finding data?

Is it much more efficient to allow java to create and restore an index, and php to use an index?

+6
php lucene zend-search-lucene
source share
2 answers

This is a quote from a Zend Certified Engineer.

Against my best judgment, the company I work for is the previous Zend_Search_Lucene search solution. With good heavy-duty equipment, indexing a million documents took several hours, and searches were relatively slow. the indexing process consumed huge amounts of memory, and indexes often (using 1.5.2). Finding a single map literally drove the web server to its knees, so we turned this feature off. The memory usage was very high for searching, and as a result, requests per second were surely greatly reduced, since we had to reduce the number of children of Apache processes.

Since then, we have moved on to Solr (a Lucene Java search server) and the difference is dramatic. indexing now takes about 10 minutes and the search is lightning fast. What is the difference that language makes.

Original article

In this case, Java.

+12
source share

When I asked this question about the Zend evangelists and one of their hired guns, I was told that Java Lucene would provide significantly better performance. Their main points concerned the handling of UTF8 characters and indexing speed (if I remember correctly). Java Lucene seems to be much better.

Do I need Zend Lucene Java Lucene?

+2
source share

All Articles