Chapter 13. Zend_Search

Table of Contents

13.1. Introduction
13.2. File Formats
13.3. Document Object
13.4. Creating and Updating the Index
13.5. Creating an Index with LuceneIndexCreation.jar
13.6. Index Directory
13.7. Searching the Index
13.8. Term Queries
13.9. Multi Term Queries
13.10. Phrase Queries
13.11. Scoring API
13.12. Storage API

13.1. Introduction

ZSearch is a general purpose text search engine written entirely in PHP 5. Since it stores its index on the filesystem and does not require a database server, it can add search capabilities to almost any PHP-driven website. ZSearch supports the following features:

  • Ranked searching - best results returned first

  • Many powerful query types: phrase queries, wildcard queries, proximity queries, range queries and more [5]

  • Search by specific field (e.g., title, author, contents)

ZSearch was derived from the Apache Lucene project. For more information on Lucene, visit http://lucene.apache.org/java/docs/.



[5] Only term and multi term queries are supported at this time.