Documentation

Index Opening and Creation - Getting Started with Zend_Search_Lucene

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 #1 Lucene Index Creation

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

Example #2 Lucene Index Opening

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

Copyright

© 2006-2021 by Zend by Perforce. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts