How can I get it insensitive to accents:
List<Criteria> andCriteria = new ArrayList<>();
if (StringUtils.isNoneBlank(dtoFilter.getNombre())) {
andCriteria.add(Criteria.where("nombre").regex(dtoFilter.getNombre(), "i"));
}
For example, if I search for Oscar, that I look for both Óscar and Oscar