New Zend Framework 0.8.0

Events happening in the community are now at Drupal community events on www.drupal.org.
jvandervort's picture

For those keeping up-to-date. I'll be loading it next week.

They are claiming: Great performance improvement for Zend_Search_Lucene.

Comments

They changed something in the query analyzer

jvandervort's picture

Some of my queries are no longer returning hits.
I'll have to check deeper.

-John

-John

Found the answer

jvandervort's picture

The new query analyzer added in 0.8.0 tokenizes all fields whether they are keyword fields or not.
If you use keyword fields you need to parse the incoming query and use the api directly to specify
a keyword query.

something like this:

$q = new Zend_Search_Lucene_Search_Query_Boolean();
$term = new Zend_Search_Lucene_Index_Term($parts[1], 'messageid');
$keywordQuery = new Zend_Search_Lucene_Search_Query_Term($term);
$q->addSubquery($keywordQuery, true /* required */);     

It does seem to run faster, but queries with excessively large hits still use up a ton of php memory.

-John

-John

Lucene, Nutch and Solr

Group organizers

Group categories

Projects

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: