ZF-3357: Cannot read Index segment that is not compound
Description
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).
Comments
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.