WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WordPress Sphinx Search Plugin

WordPress Sphinx Search Plugin allows to use Sphinx Search Server power to enable ultra-fast and feature-rich search on WordPress-based websites.

Requirements

* WordPress 2.0.2 or higher
* Sphinx Search 0.9.9 or higher
* Writable WordPress upload directory for Sphinx configuration files, logs and indexes

Installation guide

Online step-by-step installation guide

Install the plugin

  1. Unpack the plugin archive to wp-content/plugins folder of your WordPress installation
  2. Activate Sphinx Search plugin via WordPress Settings
  3. Make sure WordPress upload directory is writable by web server (by default WordPress is configured to use wp-content/uploads)
  4. Open Sphinx Search settings page and follow Wizard steps to setup Sphinx Search Server first time

Setup scheduled jobs to re-index your website data periodically

To setup periodical re-indexing, you should run Wizard to create special schedule files. The default location of these files is: /path/to/wp-content/uploads/sphinx/cron/. When wizard finishes, edit your Crontab file. Use “crontab -e” command in Linux terminal and add the following lines to your crontab:

#WordPress Delta index update
#Following cron job update delta index every 5 minutes:
*/5 * * * * /usr/bin/php /path/to/wp-content/uploads/sphinx/cron/cron_reindex_delta.php
#WordPress Main index update
#Following cron job update main index daily (at 0 hours and 5 minutes):
5 0 * * * /usr/bin/php /path/to/wp-content/uploads/sphinx/cron/cron_reindex_main.php
#WordPress Stats index update
#Following cron job update stats index every 5 minutes
*/5 * * * * /usr/bin/php /path/to/wp-content/uploads/sphinx/cron/cron_reindex_stats.php

Setup templates and widgets

Extended search form on search results page

<?php if (function_exists('ss_search_bar'))
    echo ss_search_bar();/*put it in search page*/?>

To find out if the current post is comment

<?php if (function_exists('ss_isComment') )
    if (ss_isComment()) echo 'It is comment'; else echo '';?>

Extended search form at the sidebar Use "Sphinx Search sidebar" widget or add it as template tag:

<?php if (function_exists('ss_search_bar'))
    echo ss_search_bar(true); /*put it in sidebar*/?>

Related/Top searches at the sidebar Use "Sphinx Related/Top Searches" widget or add it as template tag:

<?php if (function_exists('ss_top_searches')) ss_top_searches(); ?>

Top searches with pagination Use "ss_top_searches_pager($max_per_page=10, $show_all=false)" template tag to enable pagination for top search terms:

<?php if (function_exists('ss_top_searches_pager')) ss_top_searches_pager(); ?>

Parameters: * $max_per_page - limit how many search terms to display per page, by default 10 * $show_all - If set to True, then it will show all of the pages instead of a short list of the pages near the current page. By default, the 'show_all' is set to false

Latest searches at the sidebar Use "Sphinx Latest Searches" widget or add it as template tag:

<?php if (function_exists('ss_latest_searches')) ss_latest_searches(); ?>

Upgrade the plugin

  1. Unpack the plugin archive to wp-content/plugins folder of your WordPress installation

Requires: 2.0.2 or higher
Compatible up to: 3.9.1
Last Updated: 2014-4-23
Downloads: 23,756

Ratings

4 stars
4 out of 5 stars

Support

0 of 2 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

0,1,0
50,4,2
0,3,0 0,1,0
100,1,1 100,1,1
100,2,2 100,3,3
100,3,3 100,1,1
0,1,0
100,1,1 100,1,1
0,1,0
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1