Skip to Content
0
Former Member
Mar 04, 2009 at 01:49 PM

How to Sort by Score(highest)retrieved from RetrieveMatchedRecordsCommand

20 Views

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