Hello,
I tried running the batch index feature, and after running a bit with the progress bar I got a fatal error, which now permanently displays when accessing the Search Lucene Content > Index Statistics page. I've run the index optimizer, have my result set limit set at 1000, mimimum wildcard prefix of 3, 100 itens per index set. I'm attempting also to index two custom CCK fields. Lucene is setup to hijack the search box and has a mimimum word length of three.
My site has about 300 nodes. Before installing Lucene, I had installed and tried both the Fuzzy Search and Porter-Stemmer modules, though both are currently inactive. Other modules that are active and related to search are Field Indexer and CCK Field Indexer, both active.
I'm using 6.x-2.0 version of Zend Framework.
My Drupal version is 6.16, running in a hosted environment, PHP5, MySQL.
The error is:
Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message 'Wrong TermInfoFile file format' in /nfs/c04/h01/mnt/58825/domains/drupalbox.com/html/sites/all/modules/luceneapi/lib/Zend/Search/Lucene/Index/SegmentInfo.php:1766 Stack trace: #0 /nfs/c04/h01/mnt/58825/domains/drupalbox.com/html/sites/all/modules/luceneapi/lib/Zend/Search/Lucene.php(1418): Zend_Search_Lucene_Index_SegmentInfo->reset() #1 /nfs/c04/h01/mnt/58825/domains/drupalbox.com/html/sites/all/modules/luceneapi/lib/Zend/Search/Lucene/Proxy.php(527): Zend_Search_Lucene->terms() #2 /nfs/c04/h01/mnt/58825/domains/drupalbox.com/html/sites/all/modules/luceneapi/luceneapi.module(922): Zend_Search_Lucene_Proxy->terms() #3 /nfs/c04/h01/mnt/58825/domains/drupalbox.com/html/sites/all/modules/luceneapi/luceneapi.admin.inc(460): luceneapi_index_terms_get() #4 /nfs/c04/h01/mnt/58825/domains/drupalbox.com/html/includes/form.inc(372): luceneapi_admin_settings_statistics_form(Object(LuceneAPI_Search_Lucene_Proxy), true) #5 /nfs/c04/h01/mnt/58825/domains/drupa in /nfs/c04/h01/mnt/58825/domains/drupalbox.com/html/sites/all/modules/luceneapi/lib/Zend/Search/Lucene/Index/SegmentInfo.php on line 1766
Thanks for your help, and for the great module!
Comments
Comment #1
cpliakas commentedHi jkrane.
Thanks for your kind words, and sorry for your issues. The first thing that stands to me is the "nfs" in the path you posted. Unfortunately PHP Lucene can't operate on some network filesystems specifically because they don't work with PHP's flock() function. Check out the "Supported Filesystems" section at the very end of the ZF documentation page at http://zendframework.com/manual/en/zend.search.lucene.index-creation.html. Respectfully marking this as "won't fix", because the root cause of the issue lies with PHP.
Thanks for posting,
Chris