Federico Cargnelutti

Simple is better than complex. Complex is better than complicated. | @fedecarg

Archive for October 2007

Build a custom search engine with PHP and Sphinx

with one comment

Sphinx indexes your content, finds text fast, and provides useful search results.

If you use Google or any other search engine, you already are a user of full text searching: the capability to search for a word or group of words within many texts for the best matches for your query. Sphinx is a full text search engine for database content, which you can integrate with other applications. You can test it or use it with a command-line tool, but Sphinx is most useful as part of a Web site, not as a standalone utility.

Sphinx is a fast and capable full text search engine, particularly suited for database content. It runs its own daemon (which you compile) and does not have any web crawlers bundled. Features include high performance, good scalability and search quality, advanced sorting, filtering, and grouping.

Sphinx works in a LAMP (Linux/Apache/MySQL/PHP) context. Many content management system use MySQL for data and are coded in PHP, which make them a perfect fit for Sphinx. You can also run Sphinx on BSD (FreeBSD, NetBSD), Solaris, and even Windows. For coders, Sphinx provides Ruby, Perl, and Python libraries, but no Java.

IBM: Build a custom search engine with PHP

Compare Sphinx with other search engines

Sphinx Website: More articles

Written by Federico

October 27, 2007 at 7:35 pm

Posted in PHP, Tools, Web

Registry Pattern, good or bad?

with 5 comments

Today I came across an interesting post written by Troels Knak-Nielsen. We all know that patterns are not perfect in all situations and the Registry pattern is no exception. Here is what Troels has to say about this:

Read the rest of this entry »

Written by Federico

October 26, 2007 at 9:16 pm

Follow

Get every new post delivered to your Inbox.

Join 43 other followers