Index: trunk/extensions/SphinxSearch/sphinx.conf |
— | — | @@ -3,7 +3,6 @@ |
4 | 4 | # |
5 | 5 | # Based on examples by Paul Grinberg at http://www.mediawiki.org/wiki/Extension:SphinxSearch |
6 | 6 | # and Hank at http://www.ralree.info/2007/9/15/fulltext-indexing-wikipedia-with-sphinx |
7 | | -# |
8 | 7 | # Modified by Svemir Brkic for http://www.newworldencyclopedia.org/ |
9 | 8 | # |
10 | 9 | # Released under GNU General Public License (see http://www.fsf.org/licenses/gpl.html) |
— | — | @@ -16,9 +15,9 @@ |
17 | 16 | # data source |
18 | 17 | type = mysql |
19 | 18 | sql_host = localhost |
| 19 | + sql_db = #replace with your db name |
20 | 20 | sql_user = #replace with your db username |
21 | 21 | sql_pass = #replace with your db password |
22 | | - sql_db = #replace with your db name |
23 | 22 | # these two are optional |
24 | 23 | #sql_port = 3306 |
25 | 24 | #sql_sock = /var/lib/mysql/mysql.sock |
— | — | @@ -34,10 +33,10 @@ |
35 | 34 | sql_attr_uint = page_is_redirect |
36 | 35 | sql_attr_uint = old_id |
37 | 36 | |
38 | | - # uncomment next line to collect all category ids for a category filter |
39 | | - #sql_attr_multi = uint category from query; SELECT cl_from, page_id AS category FROM categorylinks, page WHERE page_title=cl_to AND page_namespace=14 |
| 37 | + # collect all category ids for category filtering |
| 38 | + sql_attr_multi = uint category from query; SELECT cl_from, page_id AS category FROM categorylinks, page WHERE page_title=cl_to AND page_namespace=14 |
40 | 39 | |
41 | | - # optional - used by command-line search utility to display document information |
| 40 | + # used by command-line search utility to display document information |
42 | 41 | sql_query_info = SELECT page_title, page_namespace FROM page WHERE page_id=$id |
43 | 42 | } |
44 | 43 | |
— | — | @@ -48,7 +47,7 @@ |
49 | 48 | # in this case, full index runs at 7 AM UTC |
50 | 49 | sql_query = SELECT page_id, page_title, page_namespace, page_is_redirect, old_id, old_text FROM page, revision, text WHERE rev_id=page_latest AND old_id=rev_text_id AND page_touched>=DATE_FORMAT(CURDATE(), '%Y%m%d070000') |
51 | 50 | |
52 | | - # all other parameters are copied from the parent source, |
| 51 | + # all other parameters are copied from the parent source |
53 | 52 | } |
54 | 53 | |
55 | 54 | # main index definition |
— | — | @@ -73,9 +72,9 @@ |
74 | 73 | # minimum word length |
75 | 74 | min_word_len = 1 |
76 | 75 | |
77 | | - # uncomment next 2 lines to allow wildcard (*) searches |
78 | | - #min_infix_len = 1 |
79 | | - #enable_star = 1 |
| 76 | + # allow wildcard (*) searches |
| 77 | + min_infix_len = 1 |
| 78 | + enable_star = 1 |
80 | 79 | |
81 | 80 | # charset encoding type |
82 | 81 | charset_type = utf-8 |