Add back accidentally removed support for _all as a type alias.

See 4dd4f48
This commit is contained in:
Ryan Ernst 2015-05-21 13:11:32 -07:00
parent cbead88273
commit f071c01afc

View File

@ -547,7 +547,7 @@ public class MapperService extends AbstractIndexComponent {
} }
public FieldMapper smartNameFieldMapper(String smartName, @Nullable String[] types) { public FieldMapper smartNameFieldMapper(String smartName, @Nullable String[] types) {
if (types == null || types.length == 0) { if (types == null || types.length == 0 || types.length == 1 && types[0].equals("_all")) {
return smartNameFieldMapper(smartName); return smartNameFieldMapper(smartName);
} }
for (String type : types) { for (String type : types) {