we’re only gonna die from our arrogance

random notes about technology, science and myself

Lucene + PHP Integration

con 3 comentarios

When you want to develop a search engine for a specific website, you usually don’t want to re-invent the wheel. There are a lots of engines already implemented, or on the way to be finished, and there are a high percentage of those that are under open source license. So, why don’t you have a look at them and try to integrate one on your site?

The most awarded open source search engine these days is called lucene, and it offers a JAVA API. There is also Perl and C ports of the engine. But i want to integrate it in a PHP site. So i’ve been looking at the options i had to use it from PHP, and most people have used a communication protocol between JAVA and PHP. JAVA is used to, by example, develop an XMLRPC Server that uses internally the lucene API and serves the responses through a xmlrpc interface, so that PHP can connect to it, extract the search results and display them.

PHP Architect has a good article on this integration at the June 2003 issue.

Written by arturogf

Noviembre 21, 2005 a 11:04 am

3 comentarios

Subscribe to comments with RSS.

  1. I would like to see a continuation of the topic

    Maximus

    Diciembre 20, 2007 a 7:27 am

  2. If you’re still looking there is a PHP integration of Lucene in the Zend Framework now. You can find it here: http://framework.zend.com/manual/en/zend.search.lucene.html

    Ryan

    Marzo 3, 2009 a 10:50 pm


Escribe un comentario