Skip to content
Snippets Groups Projects
Commit 713a4584 authored by Larbi Gharib's avatar Larbi Gharib
Browse files

Accent on search

Change-Id: If8e024a1b4a5408f661eecc819460de876124ccf
parent 5f54a94b
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ public class UserProfileService {
public List<UserProfile> getUserProfile(String queryString, String field, boolean exactMatch, Optional<Integer> page){
Connection connection = null;
try {
queryString = queryString.replaceAll("[^\\x00-\\x7F]","*");
queryString = new String(queryString.getBytes("UTF-8"), "ISO-8859-1");
connection = connectionFactory.getConnection();
try {
connection.open();
......@@ -102,7 +102,9 @@ public class UserProfileService {
if(!exactMatch) {
if (!queryString.startsWith("*"))
queryString = "*".concat(queryString).concat("*");
queryString = "*".concat(queryString);
if(!queryString.endsWith("*"))
queryString = queryString.concat("*");
}
if(field.equals("LOGON_NAME")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment