}
if (types == null || types.isEmpty()) {
SearchContext searchContext = SearchContext.current();
if (searchContext.hasTypes()) {
types = Arrays.asList(searchContext.types());
} else {
types = parseContext.mapperService().types();
}
} else if (types.size() == 1 && Iterables.getFirst(types, null).equals("_all")) {
types = parseContext.mapperService().types();