Issues

ZF-1954: Zend_Search_Lucene uses compound file format by default for pre-2.1 indices. Actually it should be checked

Issue Type: Bug Created: 2007-09-17T09:26:45.000+0000 Last Updated: 2008-03-21T16:25:40.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Alexander Veremyev (alexander) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Search_Lucene

Related issues: Attachments:

Description

According to the Michael Feichtinger report, Nutch 0.9 (uses Lucene 2.0) may prepare index using non-compound segment files format.

It produces the error:

<pre class="highlight">
Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message 'File 'crawlOld/index/_0.cfs' is not readable.' in D:\Websites\akooe\branch\htdocs\lucene\library\Zend\Search\Lucene\Storage\File\Filesystem.php:59 
Stack trace: 
#0 D:\Websites\akooe\branch\htdocs\lucene\library\Zend\Search\Lucene\Storage\Directory\Filesystem.php(341): Zend_Search_Lucene_Storage_File_Filesystem->__construct('crawlOld/index/...') 
#1 D:\Websites\akooe\branch\htdocs\lucene\library\Zend\Search\Lucene\Index\SegmentInfo.php(200): Zend_Search_Lucene_Storage_Directory_Filesystem->getFileObject('_0.cfs') 
#2 D:\Websites\akooe\branch\htdocs\lucene\library\Zend\Search\Lucene.php(340): Zend_Search_Lucene_Index_SegmentInfo->__construct(Object(Zend_Search_Lucene_Storage_Directory_Filesystem), '_0', 143, 0, false, true) 
#3 D:\Websites\akooe\branch\htdocs\lucene\library\Zend\Search\Lucene.php(473): Zend_Search_Lucene->_readPre21SegmentsFile() 
#4 D:\Websites\akooe\branch\htdocs\lucene\library\Zend\Search\Lucene.php(181): Zend_Search_Lucene->__constr in D:\Websites\akooe\branch\htdocs\lucene\library\Zend\Search\Lucene\Storage\File\Filesystem.php on line 59

Actual segment format should be determined "on the fly" for pre-2.1 indices

Comments

Posted by Alexander Veremyev (alexander) on 2007-11-19T06:49:58.000+0000

Fixed.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts