Aqualogic Interaction API  
 

IPTSearchResponse.GetRank Method 

Maps from the result ranking within a group to the overall (ungrouped) result ranking. For example, the highest ranking result in group 2 might be the 4th-ranked result overall. In this case, GetRank(2,0) would return 3 (note ranking is zero-based). Note that methods like GetFields() index results by the ungrouped ranking, so if you are presenting results by group this will probably be the first method you call for each result row.

int GetRank(
   int nGroup,
   int nRowWithinGroup
);

Parameters

nGroup
nRowWithinGroup
Result within the group, from 0 to (GetReturnedResultsInGroup(nGroupIndex)-1).

Return Value

overall rank of the result.

See Also

IPTSearchResponse Interface | com.plumtree.server Namespace