cancel
Showing results for 
Search instead for 
Did you mean: 

How to Sort by Score(highest)retrieved from RetrieveMatchedRecordsCommand

Former Member
0 Kudos

Hi,

FieldId needs to be passed In the Sortdefinition for the resultdefinition.

Since Score field is displayed in the DataManager,but using MDM API 5.5,im getting as int value from MatchingResult.getHighestScore() .

How do I sort the matching result by Score?? do i need to right a seperate logic for it,or in API is already there and do i missed it?.

RetrieveMatchedRecordsCommand retrieveMatchedRecordcmd = new RetrieveMatchedRecordsCommand(connectionPool);

retrieveMatchedRecordcmd.setSession(userSessionId);

retrieveMatchedRecordcmd.setMatchingTaskId(matchTaskId);

retrieveMatchedRecordcmd.setRecordId(sourceRecIds[0]);

retrieveMatchedRecordcmd.setResultDefinition(resultDefinition);

retrieveMatchedRecordcmd.execute();

Regards

Sabari

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This is not possible in MDM 5.5.hence u need to design ur code inorder to sort.

It worked after i implemented my design