r96711 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96710‎ | r96711 | r96712 >
Date:02:43, 10 September 2011
Author:svemir
Status:ok
Tags:
Comment:
Forgot to increase the version in r96710, plus some tweaks
Modified paths:
  • /trunk/extensions/SphinxSearch/SphinxSearch.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SphinxSearch/SphinxSearch.php
@@ -11,10 +11,9 @@
1212
1313 $wgExtensionCredits['other'][] = array(
1414 'path' => __FILE__,
15 - 'version' => '0.8.1',
 15+ 'version' => '0.8.2',
1616 'name' => 'SphinxSearch',
1717 'author' => array( 'Svemir Brkic', 'Paul Grinberg' ),
18 - 'email' => 'svemir at deveblog dot com, gri6507 at yahoo dot com',
1918 'url' => 'http://www.mediawiki.org/wiki/Extension:SphinxSearch',
2019 'descriptionmsg' => 'sphinxsearch-desc'
2120 );
@@ -28,6 +27,7 @@
2928 # To completely disable the default search and replace it with SphinxSearch,
3029 # set this BEFORE including SphinxSearch.php in LocalSettings.php
3130 # $wgSearchType = 'SphinxMWSearch';
 31+# All other variables should be set AFTER you include this file in LocalSettings
3232
3333 # Prior to version 0.8.0 there was a SphinxSearch search type
3434 if ( $wgSearchType == 'SphinxSearch' ) {
@@ -72,6 +72,18 @@
7373 $wgSphinxSearch_sortmode = SPH_SORT_RELEVANCE;
7474 $wgSphinxSearch_sortby = '';
7575
 76+# How many matches searchd will keep in RAM while searching
 77+$wgSphinxSearch_maxmatches = 1000;
 78+
 79+# When to stop searching all together (if not zero)
 80+$wgSphinxSearch_cutoff = 0;
 81+
 82+# Weights of individual indexed columns. This gives page titles extra weight
 83+$wgSphinxSearch_weights = array(
 84+ 'old_text' => 1,
 85+ 'page_title' => 100
 86+);
 87+
7688 # Set to true to use MW's default search snippets and highlighting
7789 $wgSphinxSearchMWHighlighter = false;
7890
@@ -87,18 +99,6 @@
88100 # Path to (optional) personal aspell dictionary
89101 $wgSphinxSearchPersonalDictionary = '';
90102
91 -# How many matches searchd will keep in RAM while searching
92 -$wgSphinxSearch_maxmatches = 1000;
93 -
94 -# When to stop searching all together (if not zero)
95 -$wgSphinxSearch_cutoff = 0;
96 -
97 -# Weights of individual indexed columns. This gives page titles extra weight
98 -$wgSphinxSearch_weights = array(
99 - 'old_text' => 1,
100 - 'page_title' => 100
101 -);
102 -
103103 # If true, use SphinxMWSearch for search suggestions displayed while typing
104104 # $wgEnableMWSuggest needs to be set to true as well
105105 $wgEnableSphinxPrefixSearch = false;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r96710added $wgEnableSphinxPrefixSearch var - if true (and $wgEnableMWSuggest is tr...svemir02:35, 10 September 2011

Status & tagging log