PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Index Opening and Creation

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 3. Lucene Index Creation

$index = Zend_Search_Lucene::create($indexPath);

Example 4. Lucene Index Opening

$index = Zend_Search_Lucene::open($indexPath);

Zend Framework