http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73301
Revision: 73301
Author: svemir
Date: 2010-09-19 03:06:55 +0000 (Sun, 19 Sep 2010)
Log Message:
-----------
keep track of page_is_redirect value for future usage with acceptListRedirects
Modified Paths:
--------------
trunk/extensions/SphinxSearch/sphinx.conf
Modified: trunk/extensions/SphinxSearch/sphinx.conf
===================================================================
--- trunk/extensions/SphinxSearch/sphinx.conf 2010-09-18 22:35:56 UTC (rev
73300)
+++ trunk/extensions/SphinxSearch/sphinx.conf 2010-09-19 03:06:55 UTC (rev
73301)
@@ -1,5 +1,5 @@
#
-# Sphinx configuration for MediaWiki
+# Sphinx configuration for MediaWiki
#
# Based on examples by Paul Grinberg at
http://www.mediawiki.org/wiki/Extension:SphinxSearch
# and Hank at
http://www.ralree.info/2007/9/15/fulltext-indexing-wikipedia-with-sphinx
@@ -27,10 +27,11 @@
sql_query_pre = SET NAMES utf8
# main document fetch query - change the table names if you are using a
prefix
- 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
+ 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
# attribute columns
sql_attr_uint = page_namespace
+ sql_attr_uint = page_is_redirect
sql_attr_uint = old_id
# uncomment next line to collect all category ids for a category filter
@@ -40,12 +41,12 @@
sql_query_info = SELECT page_title, page_namespace FROM page WHERE
page_id=$id
}
-# data source definition for the incremental index
+# data source definition for the incremental index
source src_wiki_incremental : src_wiki_main
{
# adjust this query based on the time you run the full index
# in this case, full index runs at 3 AM (server time) which translates
to 7 AM UTC
- 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')
+ 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')
# all other parameters are copied from the parent source,
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs