Login  |  Register
PHP3000.com  - Article Details
STATISTICS
  • Active Links: 4383
  • Pending Links: 1
  • Todays Links: 0
  • Total Articles: 4
  • Total Categories: 43
  • Sub Categories: 0

Creating A Fulltext Search Engine In PHP 5 With The Zend Framework's Zend Search Lucene

Date Added: July 26, 2008 05:59:12 PM
Author: Quentin Zervass
Category:

This article covers the implementation of a fulltext search engine using PHP 5 and the Zend Framework. We will be using the Zend_Search_Lucene component to create and search our fulltext index.

There are several other libraries we could use instead of this one, but Zend_Search_Lucene is completely native to PHP, whereas others such as Xapian or Tsearch2 rely on third party modules (for instance, the Tsearch2 module must be compiled into your PostgreSQL installation).

It must be noted at this point though that we require at least PHP 5 for Zend_Search_Lucene – PHP 4 will not work.

In this article we will be covering the following:

  • How to index a document or series of documents
  • The different types of fields that can be indexed
  • Searching the index

To demonstrate this functionality, we will cover the implementation of a search engine into PhpRiot. We previously used the Tsearch2 module but had some problems that we were unable to overcome.

Ratings
You must be logged in to leave a rating.
Average rating: (0 votes)
Comments

No Comments Yet.


You must be logged in to leave a Comment.
ARTICLES
Rasmus Lerdorf at OSCON: Getting Rich with PHP 5
Rasmus Lerdorf gave a talk on “Getting Rich with PHP 5”. He showed techniques to dramatically improve the throughput of a web application. Click [ more ] and I’ll give you the details.
Creating A Fulltext Search Engine In PHP 5 With The Zend Framework's Zend Search Lucene
This article covers the implementation of a fulltext search engine using PHP 5 and the Zend Framework. We will be using the Zend_Search_Lucene component to create and search our fulltext index.
Monitoring File Uploads using Ajax and PHP
Because of the limitations of HTTP, it is difficult to monitor the status of files as they are uploaded via HTML forms. While other programming languages have built-in methods to monitor file uploads, PHP does not. This article shows how to implement such a solution in PHP. We will use Ajax to retrieve information about a file as it is being uploaded and display the progress back to the user.
Generating Static Images of Google Maps
One useful feature of Google Maps is the ability to generate a static image of any longitude and latitude that you desire, as opposed to using the normal JavaScript-based interactive map. In this article I will show you how to request such static images. We will then combine this technique with the geocoder we created in the article Geocoding with PHP and the Google Maps API.