I'm doing a search engine that doesn't take capital letters, minuscules or accents into account. I've done this but the accents part doesn't work well for me.
@Override
public CResponse getAll(int page, int size, String name) {
CResponse response = new CResponse();
Page<CDocument> cDocument = Repository.findByBasicsNameRegexOrderById(
Pattern.compile(name, Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE),
PageRequest.of(page, size));
}
Any ideas?
Aucun commentaire:
Enregistrer un commentaire