All index operations (e.g., creating a new index, adding a document to the index, deleting a document, searching through the index) need an index object. One can be obtained using one of the following two methods.
Lucene Index Creation
1 | $index = Zend_Search_Lucene::create($indexPath);
|
Lucene Index Opening
1 | $index = Zend_Search_Lucene::open($indexPath);
|
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.