|
NAMEafsortscore - sort search results by score SYNOPSIS#include af.h int afsortscore(Afresult *result, int resultn); DESCRIPTIONThe afsortscore function sorts results returned from afsearch(3), putting documents with the highest score at the top of the list. The argument result specifies the array of results to be sorted. The argument resultn specifies the number of elements in result. RETURN VALUEThis function returns 0 if it exited normally. If an error occurred, it returns -1 and aferrno is set. ERRORSThis function returns only "core" errors.
|