ZF-93: Multiple Commit in Index - Search returns no result (reported by tom (at) rtl (dot) lu)

Issue Type: Bug Created: 2006-06-21T11:32:41.000+0000 Last Updated: 2007-07-05T14:44:28.000+0000 Status: Closed Fix version(s): - 0.1.4 (29/Jun/06)

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

Related issues: - ZF-91



Due to the fact, that creating an index and doing a commit at the end, is not working due to exaust of memory, I am commiting the index after each first word letter, so I have now a folder containing _0.cfs to _z.cfs & deletable & segments.

Now trying to do a search is always returning no result. a print_r of the Zend_Search_Lucene object returns certain stuff, which assumes that it is only using the first (_0.cfs) file:

[_fileHandlers:private] => Array


[segments] => Zend_Search_Lucene_Storage_File_Filesystem Object


[_fileHandle:private] => Resource id #56


[_0.cfs] => Zend_Search_Lucene_Storage_File_Filesystem Object


[_fileHandle:private] => Resource id #57



[_segFiles:private] => Array


[_0.fdx] => 106 [_0.fdt] => 130 [_0.fnm] => 618 [_0.tis] => 742 [_0.tii] => 1689 [_0.frq] => 1717 [_0.prx] => 1838


Trying to open the index with the Luke Java Application reports "No sub-file with id _0.f2 found". But trying to open an index directory which works (with a single commit) reports the error : "No sub-file with id _0.f1" found.

This index is working and there are the following files in it: _0.cfs deletable segments


Posted by Alexander Veremyev (alexander) on 2006-06-21T11:36:15.000+0000

It's the same problem as ZF-91.

Index has several segments, but only first is listed in a 'segments' file

Posted by Alexander Veremyev (alexander) on 2006-06-21T11:44:42.000+0000

fixed in SVN early. Changeset [412]

Posted by Alexander Veremyev (alexander) on 2006-06-21T11:45:14.000+0000

Fixed and tested

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.