The MDEX Engine returns relevance ranking information as a
DGraph.WhyRank
property on each record in the search
results. The MDEX Engine also returns summary information for all record
results in a
Supplement
object. (Note that the information available in
a
Supplement
object is not available if you are using the
MAX API.)
Example 102. Java example
// Retrieve properties from record PropertyMap propsMap = rec.getProperties(); // Get the WhyRank property value String wr = (String) propsMap.get("DGraph.WhyRank"); // Display the WR value if one exists if (wr != null) { %>This record was ranked by <%= wr %> <% }
Example 103. .NET example
// Retrieve properties from record PropertyMap propsMap = rec.Properties; // Get the WhyRank property value String wr = propsMap["DGraph.WhyRank"].ToString(); // Display the WR value if one exists if (wr != null) { %>This record was ranked by <%= wr %> <% }