DtSearchSortResults(library call) DtSearchSortResults(library call)
NAME [Toc] [Back]
DtSearchSortResults - Sort DtSearch results lists
SYNOPSIS [Toc] [Back]
#include <Dt/Search.h>
int DtSearchSortResults(
DtSrResult **list,
int sort_type);
DESCRIPTION [Toc] [Back]
DtSearchSortResults sorts lists returned from DtSearchQuery.
Note that results lists are already presorted by proximity by
DtSearchQuery.
ARGUMENTS [Toc] [Back]
list Specifies results lists returned from DtSearchQuery.
sort_type Specifies the DtSrResult sort field. Valid values are:
DtSrSORT_PROX
Sorts in ascending DtSrResult.proximity order.
DtSrSORT_DATE
Sorts in descending DtSrResult.objdate order.
RETURN VALUE [Toc] [Back]
DtSearchSortResults returns DtSrERROR if sort_type is invalid.
Otherwise, it returns DtSrOK.
SEE ALSO [Toc] [Back]
DtSrAPI(3), DtSearchQuery(3), DtSearchFreeResults(3),
DtSearchMergeResults(3)
- 1 - Formatted: January 24, 2005 [ Back ] |