prSortVector
Name
prSortVector
Synopsis
void prSortVector(OnixQueryVectorT Vector,
StatusCodeT *Status)
Arguments
Vector:
The vector you wish to sort by hit weight.
Status:
A pointer to a value of type StatusCodeT representing any error
conditions.
Returns
OnixQueryVectorT holding the results of
your query. This may be NULL if there was nothing to return.
If an error occurred, Status will be set
to the error number.
Description
prSortVector() sorts a vector by the weights
of each hit with the most significant hit first.
Be careful not to call prVectorNextRecord()
on sorted vectors. It may have unpredictable results.
Remember that you are responsible for freeing
the returned vector with prDeleteResultVector(). prSortVector()
does not modify the vector you pass but rather creates
a new one.
See Also
prProcessQuery, prGetWordVector,
prDeleteResultVector