Gigaom Sphinx

Improve WP Query performance using Sphinx.

Author:Casey Bisson (profile at wordpress.org)
WordPress version required:3.7
WordPress version tested:4.0.38
Plugin version:0.1
Added to WordPress repository:04-11-2014
Last updated:04-11-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://kitchen.gigaom.com/
Total downloads:1 014
plugin download
Click to start download

Sphinx is a blazing fast index of content. This plugin makes it easy get WordPress posts into Sphinx, then query them using standard WP Query. This approach improves the performance of queries in core WordPress and even in plugins without having to implement a new API or rewrite the queries.

See it in use at search.gigaom.com. Each search result is a post in WordPress, Sphinx does the work to find the matching results. The filters in the sidebar are powered by Scriblio based on taxonomy data on each post.

What it accellerates

The plugin accellerates most WP Queries, including search, tag/taxonomy, author, and date, among others. The full list of supported query vars is:

  1. author
  2. author_name
  3. authors
  4. category__and
  5. category__in
  6. category__not_in
  7. exclude
  8. feed
  9. fields
  10. ignore_sticky_posts
  11. include
  12. no_found_rows
  13. numberposts
  14. numberposts
  15. offset
  16. order
  17. orderby
  18. output
  19. paged
  20. post__in
  21. post__not_in
  22. post_parent
  23. post_status
  24. post_type
  25. posts_per_page
  26. s
  27. suppress_filters
  28. tag
  29. tag__and
  30. tag__in
  31. tag__not_in
  32. tag_id
  33. tag_slug__and
  34. tag_slug__in
  35. tax_query
  36. wijax

See those in the code.

What it doesn’t

One of the only class of queries not supported are queries against metadata. Those are ignored by this plugin and WP Query handles those as usual.

go-sphinx automatically detects if other plugins have modified the SQL outside WP Query and steps out of the way if so. That allows the query to execute against the MySQL database as usual, but without the performance benefits of Sphinx.

In the WordPress.org plugin repo

Eventually: https://wordpress.org/plugins/go-sphinx/

Fork me!

This plugin is on Github: https://github.com/gigaOM/go-sphinx