ZF-3412: Exception when open lucene index (created by java lucene)
Description
YaHoo Hi, when I use this code :
<? $index = Zend_Search_Lucene::open('/index'); ?>that index created by java lucene (or clucene), I got this exception:
"Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message 'Wrong segments file format' in ../Lucene.php:328 Stack trace: #0 ../Lucene.php(452): Zend_Search_Lucene->_readSegmentsFile() #1 ../Lucene.php(186): Zend_Search_Lucene->__construct('/index', false) #2 test.php(4): Zend_Search_Lucene::open('/index') #3 {main} thrown in ../Lucene.php on line 328"
what's problem?
Comments
Posted by Tobias (toby78) on 2008-06-19T21:37:56.000+0000
I have the same problem. I can call the php scripts from the console, but not from the URL.
Posted by Alexander Veremyev (alexander) on 2008-07-22T08:18:50.000+0000
Which Java Lucene version do you use?
ZF 1.5.2 supports Java Lucene versions 1.4-2.2. Lucene 2.3 index format support just came with th ZF 1.6 RC1.