Removing question concerning default no docs query.
This commit is contained in:
parent
63eb81e7af
commit
4c9070c52e
|
@ -286,8 +286,6 @@ public class MatchQuery {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Query zeroTermsQuery() {
|
protected Query zeroTermsQuery() {
|
||||||
// TODO This is weird: DEFAULT_ZERO_TERMS_QUERY is a public static final field, so this can have only one value.
|
|
||||||
// why are we then having this if clause in here?
|
|
||||||
return zeroTermsQuery == DEFAULT_ZERO_TERMS_QUERY ? Queries.newMatchNoDocsQuery() : Queries.newMatchAllQuery();
|
return zeroTermsQuery == DEFAULT_ZERO_TERMS_QUERY ? Queries.newMatchNoDocsQuery() : Queries.newMatchAllQuery();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue