Hi,
Felipe Weckx wrote:
$index = Zend_Search_Lucene::open($indexName);
//adiciona ao documento
$doc = new Zend_Search_Lucene_Document();
... add the fields
$index->addDocument($doc);
But the script stops responding in the last line... Any ideas?
I'm using ZF 1.0.4
Did it every work for you? E.g. 1.0.3? How big is the index and how many
documents does it already contain? How you optimize()ed your index? How do you
define "stops responding", how long did you have it ran until you considered
it being hung? On big indexes adding big document can sometimes take up to a
minute.
Did you use xdebug and wincachegrind to profile what's going on?
Just to make things straights, we're using ZLS since 1.0.4, with small (5MB)
and big (50MB) indexes and they work. But usually, especially with PHP, you
should keep you're data out of the index to still have a reasonable query
performance.
HTH,
- Markus