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