WebCenter Interaction API  
 

IPTSearchResponse.GetCorrectionFrequency Method 

Returns the number of search results in which the selected correction appears. This helps the UI decide which corrections to display and in what order.

int GetCorrectionFrequency(
   int nMisspellingIndex,
   int nCorrectionIndex
);

Parameters

nMisspellingIndex
Index of original token, from 0 to (GetNumMisspelledTokens()-1).
nCorrectionIndex
Index of desired correction, from 0 to (GetNumCorrections(nMisspellingIndex)-1).

Return Value

number of search results in which the selected correction appears (may be 0).

See Also

IPTSearchResponse Interface | com.plumtree.server Namespace