*Product Version:* MediaWiki 1.24.2 PHP 5.3.16 (cgi-fcgi) MySQL 5.1.63-cll
*Extension Version* SphinxSearch 0.9.0 License Replaces MediaWiki search engine with Sphinx Svemir Brkic and Paul Grinberg
Hi, after upgrade from 1.22 to 1.24 the Sphinx doesn't seem to work so, before to face the upgrade to 1.25 I want to ind the problem (if any). It seems like there is no connection between MW and Sphinx but the connection in established as per terminal *searchd --console* command line tool. Main and Incremental index are as follow:
indexing index 'wiki_main'... collected 68893 docs, 57.5 MB sorted 17.6 Mhits, 100.0% done total 68893 docs, 57485297 bytes total 31.375 sec, 1832200 bytes/sec, 2195.79 docs/sec indexing index 'wiki_incremental'... collected 21 docs, 0.0 MB sorted 0.0 Mhits, 100.0% done total 21 docs, 41693 bytes
and searching at terminal level (command line query using search tool) woks like a charm:
Sphinx 2.0.4-id64-release (r3135)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/home/tunearch/opt/etc/sphinx/sphinx.conf'...
index 'wiki_main': query 'Layton ': returned 23 matches of 23 total in 0.015 sec
displaying matches:
1. document=27449, weight=2789, page_namespace=0, old_id=173475
page_title=Jackie_Layton
page_namespace=0
2. document=27450, weight=2776, page_namespace=204, old_id=173476
page_title=Jackie_Layton
page_namespace=204
Given that the extension version (0.9.0) and the Engine version are the two suggested by the Extension page (It is recommended to use/update to *Sphinx release 2.0.4-release http://sphinxsearch.com/downloads/* together with *Extension:SphinxSearch 0.9.0*) and that the sphinxapi.php is (therefore) the correct one I don't understand why I cannot get the list of pages found by the Sphinx Engine rendered on the search page of my site (tunearch.org).
Here is my LocalSettings.php configuration for Sphinx
*LocalSettings.php* #Sphinx $wgSearchType = 'SphinxMWSearch'; require_once( "$IP/extensions/SphinxSearch/SphinxSearch.php" );
# Host and port on which searchd deamon is running $wgSphinxSearch_host = '127.0.0.1'; $wgSphinxSearch_port = 9312; $wgSphinxSearch_matches = 20; $wgFooterIcons['poweredby']['sphinxsearch'] = array( 'src' => "$wgScriptPath/extensions/SphinxSearch/skins/images/Powered_by_sphinx.png", 'url' => 'http://www.mediawiki.org/wiki/Extension:SphinxSearch', 'alt' => 'Search Powered by Sphinx', ); $wgSphinxSearchMWHighlighter = true; $wgEnableMWSuggest = true; $wgEnableSphinxInfixSearch = true;
Any idea? Please help...