File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
modules/elasticsearch/src/main/java/org/apache/lucene/queryParser Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 26
26
import org .elasticsearch .common .collect .ImmutableMap ;
27
27
import org .elasticsearch .common .lucene .Lucene ;
28
28
import org .elasticsearch .common .lucene .search .Queries ;
29
+ import org .elasticsearch .index .mapper .AllFieldMapper ;
29
30
import org .elasticsearch .index .mapper .FieldMapper ;
30
31
import org .elasticsearch .index .mapper .FieldMappers ;
31
32
import org .elasticsearch .index .mapper .MapperService ;
@@ -177,6 +178,9 @@ public void reset(QueryParserSettings settings) {
177
178
}
178
179
179
180
@ Override protected Query getWildcardQuery (String field , String termStr ) throws ParseException {
181
+ if (AllFieldMapper .NAME .equals (field ) && termStr .equals ("*" )) {
182
+ return newMatchAllDocsQuery ();
183
+ }
180
184
String indexedNameField = field ;
181
185
currentMapper = null ;
182
186
if (parseContext .mapperService () != null ) {
You can’t perform that action at this time.
0 commit comments