cancel
Showing results for 
Search instead for 
Did you mean: 

UME API IUserSearchFilter: lastname search for "f" result returns "v"

Former Member
0 Kudos

Hi all,

I have developed a Portal Service that searches for a user using the setLastName(lastName, ISearchAttribute.LIKE_OPERATOR, false) with IUserSearchFilter. When I search for lastName = "f" I get a couple of users with last names starting with "F" but also one starting with "V" not containing any "f". Does this have something to do with the "like_operator"? Or is it a UME bug? Or...?

Thank you for any ideas or information on this!

BR

Helga

Accepted Solutions (0)

Answers (2)

Answers (2)

christiansche
Active Participant
0 Kudos

Hi Helga!

While using

setLastName("f*", ISearchAttribute.LIKE_OPERATOR, false);

I get only correct results. We have also users with last names starting with "V", but I only get them when searching for "v*".

Regards, Christian

Former Member
0 Kudos

Hi Christian,

do I know you from better days ;)?

Anyhow, the search api maybe works correct - I did not have the time to do to much research so far but I assume that the problem is caused by the quality of ldap data.

I will let you know as soon as I know more.

Best regards!

Helga

former_member182372
Active Contributor
0 Kudos

Hi Helga,

Are you using API as desribed here http://help.sap.com/saphelp_nw04/helpdata/en/0f/807300c5754ed79107dcd9c2ae4ef4/content.htm ?


isf.setDisplayName ("*f*", ISearchAttribute.LIKE_OPERATOR, false);

or just


isf.setDisplayName ("f", ISearchAttribute.LIKE_OPERATOR, false);

Best regards, Maksim Rashchynski,

Former Member
0 Kudos

Hi Maksim,

I want to search for the last name starting with "F" and get one result with last name starting with "V".

BR

Helga

former_member182372
Active Contributor
0 Kudos

Hi Helga,

What code are you using for this?

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

searchFilter = userFactory.getUserSearchFilter();

searchFilter.setLastName(lastName,ISearchAttribute.LIKE_OPERATOR, false);

Where lastName will be something like "smith*"

BR

Helga