r49858 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49857‎ | r49858 | r49859 >
Date:08:50, 25 April 2009
Author:rainman
Status:deferred
Tags:
Comment:
Fix custom namespace score boosts (e.g. for commons), should check keys not objects here
Modified paths:
  • /branches/lucene-search-2.1/src/org/wikimedia/lsearch/config/GlobalConfiguration.java (modified) (history)

Diff [purge]

Index: branches/lucene-search-2.1/src/org/wikimedia/lsearch/config/GlobalConfiguration.java
@@ -1536,7 +1536,7 @@
15371537 }
15381538
15391539 public ArticleNamespaceScaling getNamespaceScaling(String dbname){
1540 - if(namespaceBoost.contains(dbname))
 1540+ if(namespaceBoost.containsKey(dbname))
15411541 return namespaceBoost.get(dbname);
15421542 else if(namespaceBoost.containsKey("<default>"))
15431543 return namespaceBoost.get("<default>");

Status & tagging log