ZF-3357: Cannot read Index segment that is not compound

Issue Type: Bug Created: 2008-05-30T07:20:48.000+0000 Last Updated: 2008-09-02T10:39:32.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Dan Connelly (dsconnelly) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Search_Lucene

Related issues: Attachments:


Lucene 2.1 onwards has Int8 "isCompundFile" flag in the segment descriptor.

Lucene description for this flag follows:

"IsCompoundFile records whether the segment is written as a compound file or not. If this is -1, the segment is not a compound file. If it is 1, the segment is a compound file. Else it is 0, which means we check filesystem to see if _X.cfs exists."

However, ZF code (Lucene.php) treats isCompoundFile as a boolean. This fails (throws an exception) when the segment is explicitly not a compound file, as is the case for indexes produced by Lucene Nutch (web crawl and search tool).


Posted by Wil Sinclair (wil) on 2008-06-01T12:35:44.000+0000

Please evaluate and categorize as necessary.

Posted by Alexander Veremyev (alexander) on 2008-07-25T12:01:07.000+0000

Fixed for the release-1.5 and release-1.6 branches.

Posted by Wil Sinclair (wil) on 2008-09-02T10:39:32.000+0000

Updating for the 1.6.0 release.

Have you found an issue?

See the Overview section for more details.


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

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