WordPress.org

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.

= 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

<h4>Setup templates and widgets</h4>
Extended search form on search results 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

Arbitrary section

Semi live update - "main+delta" scheme

To enable semi-live index updates also known as "main+delta" scheme, the plugin will create the following table in your MySQL database: `

= in MySQL

= CREATE TABLE wp_sph_stats ( id int(11) unsigned NOT NULL auto_increment, keywords varchar(255) NOT NULL default '', date_added datetime NOT NULL default '0000-00-00 00:00:00', keywords_full varchar(255) NOT NULL default '', status tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (id), KEY keywords (keywords) ); ` If your WordPress installation's table prefix is not "wp_", substitute it with the correct value.

Start Sphinx Search at boot

= How to automatically start Sphinx Search daemon at boot:

= * In Debian based systems i.e. Ubuntu:

% update-rc.d "/path/to/bin/searchd --config /path/to/etc/sphinx.conf" defaults
  • In Redhat based systems i.e. Fedora:
% chkconfig --add "/path/to/bin/searchd --config /path/to/etc/sphinx.conf"

Requires: 2.0.2 or higher
Compatible up to: 4.2.2
Last Updated: 2015-4-28
Active Installs: 1,000+

Ratings

4.8 out of 5 stars

Support

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

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say 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
100,1,1
100,2,2
100,1,1
100,1,1