lukemack wrote:
In the current ZF manual, it seems that some additional methods are required
i.e Zend_search_Lucene::create and ::open.
I'd be grateful if someone could take a look at the above code and see if
they think this needs adapting? In particular, I think the setting of the
path to the index file(s) is incorrect.
I think you only need to replace every
new Zend_Search_Lucene($indexPath, true);
with
Zend_Search_Lucene::create($indexPath);
(line 16 in [1])
and every
new Zend_Search_Lucene($indexPath, false);
or just
new Zend_Search_Lucene($indexPath);
with
Zend_Search_Lucene::open($indexPath);
(line 16 in [2])
You also don't need the commit() at the end of [1].
[1] http://bakery.cakephp.org/articles/download_code/102/block/5
[2] http://bakery.cakephp.org/articles/download_code/102/block/2