The MDEX Engine returns match information for each record as a
DGraph.WhyMatch property in the search results.
The following code samples show how to extract and display the
DGraph.WhyMatch property from a record.
Example 95. Java example
// Retrieve properties from record
PropertyMap propsMap = rec.getProperties();
// Get the WhyMatch property value
String wm = (String) propsMap.get("DGraph.WhyMatch");
// Display the WM value if one exists
if (wm != null) {
%>This record matched on <%= wm %>
<%
}
Example 96. .NET example
// Retrieve properties from record
PropertyMap propsMap = rec.Properties;
// Get the WhyMatch property value
String wm = propsMap["DGraph.WhyMatch"].ToString();
// Display the WM value if one exists
if (wm != null) {
%>This record matched on <%= wm %>
<%
}

