Removing question concerning default no docs query.

This commit is contained in:
Isabel Drost-Fromm 2016-04-27 14:03:29 +02:00
parent 63eb81e7af
commit 4c9070c52e
1 changed files with 0 additions and 2 deletions

View File

@ -286,8 +286,6 @@ public class MatchQuery {
}
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();
}