Hi! I am in process of investigating what it is.
The behavior is very unstable and it's difficult to reproduce the problem. So it's still open.
I am not sure, that the problem should be mentioned in a documentation because it doesn't exist on a lot of systems.
I work on it and hope to have news in the near future. With best regards, Alexander Veremyev. bongobongo wrote:
Did some more digging around and found this bug: http://framework.zend.com/issues/browse/ZF-561 relates to my errors with problem to open the segments file. This bug is still open! Status: Open Proiority: Major ************************************************ Did one more test to see what was going on in the index directory: ************************************************ I open the explorer window in XP and view the content of the directory containing the index files. One file there is named "segments" Now I start the script and it starts to write to the index (adding docs).... After some time the script bails out and throw back an error message... same as initially reported in this thread... .... Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message 'fopen(c:/lucene/lucene/segments) [ function.fopen function.fopen ]: failed to open stream: Permission denied' in C:\www\htdocs\ZendFramework\Zend\Search\Lucene\Storage\File\Filesystem.php:63 Stack trace .... Just after I got the error message to the client, some interesting stuff is going on within my index directory: segments file is gone another file called segments.new is created as well as a bunch of _x.sfs files So the segments file is deleted by the engine. If the file does not exist then I'm not surprised that the 'fopen(c:/lucene/lucene/segments)' failes. Would appreciate to get some feedback on this, as well as if there is anybody that will fix this bug sooner or laiter.... And why is it not a specific chapter in the zend_search_lucene manual that list known problems. It would save us, the end users, a lot of time and frustration if we did not have to hit such bugs.... Regards
