A review of Introduction to Search with Sphinx by Andrew Aksyonoff
This is an engaging short introduction to Sphinx. At 146 pages, you shouldn’t expect it to go into every detail, and it doesn’t. There are major topics that it omits entirely or mentions only tangentially, such as distributed searching across a cluster of machines, real-time updating of indexes and attributes, and so on. But although the book doesn’t boil the ocean, it does a great job at covering an introductory subset of Sphinx. It’s just the book you need to get rid of MyISAM full-text indexes and return MySQL to proper performance again.
This book is about how to get started with Sphinx: getting it up and running, basic configuration, creating and maintaining indexes, and querying with the SphinxAPI and SphinxQL languages. It covers relevance and ranking, so you can understand how Sphinx is different from most relevance engines and why it produces better results.
If you haven’t explored Sphinx, you should start with this book. If you know Sphinx, it might be redundant to you.
Either way, it’s a fun book to read. Andrew is a great writer with a charming sense of geeky humor, and he makes a lot of jokes in his examples. These don’t interfere with the learning, but they do make it a lot less dull. (It isn’t forced or overdone, either, unlike a lot of books that have to make constant Beatles references at every opportunity.)
Further Reading:







It would be great to know if this book covers key issues like:
- assigning unique IDs to individual records across multiple tables in a single index;
- deal with multi-vauled string attributes, which aren’t always easily supported
And other such subtleties that are necessities when working with real-world datasets.
Fenway
29 Aug 11 at 9:00 am
Yeah, he covered both of those a bit. The MVA issue is hard because there are so many possible scenarios that you could write a lot about it for different use cases.
Xaprb
29 Aug 11 at 11:44 am
Do you happen to know if there are any sample chapters where these issues are addressed? Otherwise, I suppose I could not be lazy and walk into a book store and check myself.
Fenway
29 Aug 11 at 12:43 pm
Not sure — they should have some samples online at the publisher’s link (check above), but I don’t know if it includes these bits.
Xaprb
30 Aug 11 at 9:00 am