dinok
2007-08-26 11:25:32 UTC
Hi guys,
I'm trying to index some small data with Zend_Search_Lucene, but it doesn't
work :(
So the source.php:
$index = new Zend_Search_Lucene('one', true);
$doc = new Zend_Search_Lucene_Document();
$doc->addField(Zend_Search_Lucene_Field::UnIndexed('link', 'link'));
$doc->addField(Zend_Search_Lucene_Field::Text('title', 'title'));
$doc->addField(Zend_Search_Lucene_Field::Text('contents', 'content'));
echo "Adding test......\n";
$index->addDocument($doc);
$index->commit();
First error:
Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message
'File 'one/segments_1' is not readable.' in...
After I refreshed the page:
Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message
'File 'one/index.lock' is not readable.'
The folder 'one' is correctly created and it contains the following files:
_0.cfs
deletable
segments
write.lock
When I create an empty file named 'index.lock', everything works fine...
System is WinXP SP 2.
Best regards,
Dino
I'm trying to index some small data with Zend_Search_Lucene, but it doesn't
work :(
So the source.php:
$index = new Zend_Search_Lucene('one', true);
$doc = new Zend_Search_Lucene_Document();
$doc->addField(Zend_Search_Lucene_Field::UnIndexed('link', 'link'));
$doc->addField(Zend_Search_Lucene_Field::Text('title', 'title'));
$doc->addField(Zend_Search_Lucene_Field::Text('contents', 'content'));
echo "Adding test......\n";
$index->addDocument($doc);
$index->commit();
First error:
Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message
'File 'one/segments_1' is not readable.' in...
After I refreshed the page:
Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message
'File 'one/index.lock' is not readable.'
The folder 'one' is correctly created and it contains the following files:
_0.cfs
deletable
segments
write.lock
When I create an empty file named 'index.lock', everything works fine...
System is WinXP SP 2.
Best regards,
Dino
--
View this message in context: http://www.nabble.com/Zend_Search_Lucene-%2B-index.lock-problem-tf4330822s16154.html#a12334061
Sent from the Zend MFS mailing list archive at Nabble.com.
View this message in context: http://www.nabble.com/Zend_Search_Lucene-%2B-index.lock-problem-tf4330822s16154.html#a12334061
Sent from the Zend MFS mailing list archive at Nabble.com.