Kris Jurka wrote:

[Different results/performance with PHP vs Java Lucene]

Some more testing has revealed that PHP was doing a search over all index parts while Java was just using the contents. Additional the Java version considered "there" a stop word, so now comparing apples to apples:

./searchtest.php 'contents:hey contents:good contents:looking'
Search in: 4.2395761013
Hits: 38494

$ java -classpath lucene-core-2.2.0.jar:. SearchTest 'contents:hey contents:good contents:looking'
Search in: 0.29
Hits: 38494

Kris Jurka

Reply via email to