Real-time indexing and searching is one of the major goals of web development in 2010. As of version 1.10.1
Sphinx is added to the list of search engines that deliver the promise of real-time.
Remember, in this post I’m using a developers’ trunk, checked out from repository. Get your’s copy here:
Worked for me out of the box on a Debian etch box after failing on Snow Leopard.
First you need to setup your
listen switch in the
searchd section to set up a MySQL protocol based server. However, a couple of quick benchmarks show that it’s significantly slower that the regular
search I used the MySQL protocol to index my data. Given the structure (
message_id) I can now connect to my server and start indexing:
Remember, always use single quotes.
Querying real-time index is just as easy as typing:
And that’s it, now you’re ready to start your real-time search!
All the details can found in the
doc folder of the repository. This is just a brief write up to get you started.