mirror of https://github.com/apache/lucene.git
- Cosmetics.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149936 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c694d44442
commit
51585c68da
|
@ -535,8 +535,8 @@ Query Term(String field) : {
|
|||
}
|
||||
catch (Exception ignored) { }
|
||||
|
||||
// could happen with boosted stopword
|
||||
if(q != null) {
|
||||
// avoid boosting null queries, such as those caused by stop words
|
||||
if (q != null) {
|
||||
q.setBoost(f);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue