Index: trunk/extensions/SphinxSearch/SphinxSearch.php |
— | — | @@ -11,10 +11,9 @@ |
12 | 12 | |
13 | 13 | $wgExtensionCredits['other'][] = array( |
14 | 14 | 'path' => __FILE__, |
15 | | - 'version' => '0.8.1', |
| 15 | + 'version' => '0.8.2', |
16 | 16 | 'name' => 'SphinxSearch', |
17 | 17 | 'author' => array( 'Svemir Brkic', 'Paul Grinberg' ), |
18 | | - 'email' => 'svemir at deveblog dot com, gri6507 at yahoo dot com', |
19 | 18 | 'url' => 'http://www.mediawiki.org/wiki/Extension:SphinxSearch', |
20 | 19 | 'descriptionmsg' => 'sphinxsearch-desc' |
21 | 20 | ); |
— | — | @@ -28,6 +27,7 @@ |
29 | 28 | # To completely disable the default search and replace it with SphinxSearch, |
30 | 29 | # set this BEFORE including SphinxSearch.php in LocalSettings.php |
31 | 30 | # $wgSearchType = 'SphinxMWSearch'; |
| 31 | +# All other variables should be set AFTER you include this file in LocalSettings |
32 | 32 | |
33 | 33 | # Prior to version 0.8.0 there was a SphinxSearch search type |
34 | 34 | if ( $wgSearchType == 'SphinxSearch' ) { |
— | — | @@ -72,6 +72,18 @@ |
73 | 73 | $wgSphinxSearch_sortmode = SPH_SORT_RELEVANCE; |
74 | 74 | $wgSphinxSearch_sortby = ''; |
75 | 75 | |
| 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 | + |
76 | 88 | # Set to true to use MW's default search snippets and highlighting |
77 | 89 | $wgSphinxSearchMWHighlighter = false; |
78 | 90 | |
— | — | @@ -87,18 +99,6 @@ |
88 | 100 | # Path to (optional) personal aspell dictionary |
89 | 101 | $wgSphinxSearchPersonalDictionary = ''; |
90 | 102 | |
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 | | - |
103 | 103 | # If true, use SphinxMWSearch for search suggestions displayed while typing |
104 | 104 | # $wgEnableMWSuggest needs to be set to true as well |
105 | 105 | $wgEnableSphinxPrefixSearch = false; |