*:* query string query should resolve to match_all query, since the wildcard field support, it no longer does

This commit is contained in:
Shay Banon 2012-07-21 13:55:50 -07:00
parent 153c0de636
commit 443f740795
1 changed files with 1 additions and 2 deletions

View File

@ -31,7 +31,6 @@ import org.elasticsearch.common.lucene.search.Queries;
import org.elasticsearch.common.regex.Regex;
import org.elasticsearch.index.mapper.FieldMapper;
import org.elasticsearch.index.mapper.MapperService;
import org.elasticsearch.index.mapper.internal.AllFieldMapper;
import org.elasticsearch.index.query.QueryParseContext;
import org.elasticsearch.index.query.support.QueryParsers;
@ -548,7 +547,7 @@ public class MapperQueryParser extends QueryParser {
@Override
protected Query getWildcardQuery(String field, String termStr) throws ParseException {
if (AllFieldMapper.NAME.equals(field) && termStr.equals("*")) {
if ("*".equals(field) && termStr.equals("*")) {
return newMatchAllDocsQuery();
}
Collection<String> fields = extractMultiFields(field);