mirror of
https://github.com/apache/lucene.git
synced 2025-02-23 18:55:50 +00:00
debugging: show when coord is disabled
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1133872 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b662041cbc
commit
a54dbc985c
@ -465,7 +465,7 @@ public class QueryParsing {
|
||||
BooleanQuery q = (BooleanQuery) query;
|
||||
boolean needParens = false;
|
||||
|
||||
if (q.getBoost() != 1.0 || q.getMinimumNumberShouldMatch() != 0) {
|
||||
if (q.getBoost() != 1.0 || q.getMinimumNumberShouldMatch() != 0 || q.isCoordDisabled()) {
|
||||
needParens = true;
|
||||
}
|
||||
if (needParens) {
|
||||
@ -511,6 +511,9 @@ public class QueryParsing {
|
||||
out.append('~');
|
||||
out.append(Integer.toString(q.getMinimumNumberShouldMatch()));
|
||||
}
|
||||
if (q.isCoordDisabled()) {
|
||||
out.append("/no_coord");
|
||||
}
|
||||
|
||||
} else if (query instanceof PrefixQuery) {
|
||||
PrefixQuery q = (PrefixQuery) query;
|
||||
|
Loading…
x
Reference in New Issue
Block a user