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.
Example 8.1. Lucene Index Creation
$index = Zend_Search_Lucene::create($indexPath);
Example 8.2. Lucene Index Opening
$index = Zend_Search_Lucene::open($indexPath);