r73301 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73300‎ | r73301 | r73302 >
Date:03:06, 19 September 2010
Author:svemir
Status:deferred
Tags:
Comment:
keep track of page_is_redirect value for future usage with acceptListRedirects
Modified paths:
  • /trunk/extensions/SphinxSearch/sphinx.conf (modified) (history)

Diff [purge]

Index: trunk/extensions/SphinxSearch/sphinx.conf
@@ -1,5 +1,5 @@
22 #
3 -# Sphinx configuration for MediaWiki
 3+# Sphinx configuration for MediaWiki
44 #
55 # Based on examples by Paul Grinberg at http://www.mediawiki.org/wiki/Extension:SphinxSearch
66 # and Hank at http://www.ralree.info/2007/9/15/fulltext-indexing-wikipedia-with-sphinx
@@ -27,10 +27,11 @@
2828 sql_query_pre = SET NAMES utf8
2929
3030 # main document fetch query - change the table names if you are using a prefix
31 - sql_query = SELECT page_id, page_title, page_namespace, old_id, old_text FROM page, revision, text WHERE rev_id=page_latest AND old_id=rev_text_id
 31+ 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
3232
3333 # attribute columns
3434 sql_attr_uint = page_namespace
 35+ sql_attr_uint = page_is_redirect
3536 sql_attr_uint = old_id
3637
3738 # uncomment next line to collect all category ids for a category filter
@@ -40,12 +41,12 @@
4142 sql_query_info = SELECT page_title, page_namespace FROM page WHERE page_id=$id
4243 }
4344
44 -# data source definition for the incremental index
 45+# data source definition for the incremental index
4546 source src_wiki_incremental : src_wiki_main
4647 {
4748 # adjust this query based on the time you run the full index
4849 # in this case, full index runs at 3 AM (server time) which translates to 7 AM UTC
49 - sql_query = SELECT page_id, page_title, page_namespace, 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')
 50+ 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')
5051
5152 # all other parameters are copied from the parent source,
5253 }

Status & tagging log