r60766 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60765‎ | r60766 | r60767 >
Date:04:53, 7 January 2010
Author:philip
Status:deferred
Tags:
Comment:
follow-up r60742. adapt to the code changes made in r60764.
Modified paths:
  • /trunk/extensions/MWSearch/MWSearchUpdater.php (modified) (history)
  • /trunk/extensions/MWSearch/MWSearch_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MWSearch/MWSearch_body.php
@@ -10,7 +10,7 @@
1111 */
1212 function searchText( $term ) {
1313 global $wgContLang;
14 - $term = $wgContLang->stripForSearch( $term );
 14+ $term = $wgContLang->stripForSearch( $term, false );
1515 return LuceneSearchSet::newFromQuery( isset($this->related)? 'related' : 'search',
1616 $term, $this->namespaces, $this->limit, $this->offset, $this->searchingEverything() );
1717 }
Index: trunk/extensions/MWSearch/MWSearchUpdater.php
@@ -21,7 +21,7 @@
2222 */
2323 function updatePage( $dbname, $title, $text ) {
2424 global $wgContLang;
25 - $text = $wgContLang->stripForSearch( $text );
 25+ $text = $wgContLang->stripForSearch( $text, false );
2626 return MWSearchUpdater::sendRPC( 'searchupdater.updatePage',
2727 array( $dbname, $title, $text ) );
2828 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r61856Follow up r60742, r60743, r60764, r60766, r61214, r61390. Split stripForSearc...philip15:09, 2 February 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r60742Add stripForSearch in MWSearch. So we could regularize text before indexing a...philip19:44, 6 January 2010
r60764follow-up r60743....philip04:50, 7 January 2010

Status & tagging log