r110677 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110676‎ | r110677 | r110678 >
Date:18:58, 3 February 2012
Author:oren
Status:deferred
Tags:
Comment:
corrected bug in unused private code ;-(
Modified paths:
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/analyzers/WikiQueryParser.java (modified) (history)

Diff [purge]

Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/analyzers/WikiQueryParser.java
@@ -1699,7 +1699,7 @@
17001700 * @deprecated - unused private method
17011701 */
17021702 private void filterStopWords(BooleanQuery bq) {
1703 - if (stopWords == null && stopWords.size() == 0)
 1703+ if (stopWords == null || stopWords.size() == 0)
17041704 return;
17051705 for (BooleanClause cl : bq.getClauses()) {
17061706 Query q = cl.getQuery();

Status & tagging log