Profiling Engine SDK
API Reference

API
Function List
Topical List
   
 
Query Language
Introduction
Summary
Operators
Tips, Questions, and Answers
   
 
Main Index
Index
Tutorial
API Functions
Query Language
   
Technology Overview
   
Contact Us
   
 
Other Products

Onix Text Search and Retrieval Engine
Brevity Document Summarizer
Lextek Document Profiler & Categorizer
RouteX Document Routing Engine
Lextek Language Identifier
 

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