Query objects represents queries.
Z3950_query Z3950_query_create(void); void Z3950_query_destroy(Z3950_query q); int Z3950_query_prefix(Z3950_query q, const char *str); int Z3950_query_sortby(Z3950_query q, const char *criteria); |
Create query objects using Z3950_query_create and destroy them by calling Z3950_query_destroy. RPN-queries can be specified in PQF notation by using the function Z3950_query_prefix. More query types will be added later, such as CCL to RPN-mapping, native CCL query, etc. In addition to a search, a sort criteria may be set. Function Z3950_query_sortby specifies a sort criteria using the same string notation for sort as offered by the YAZ client.
The query object is just an interface for the member Query in the SearchRequest. The sortby-function is an interface to the sortSequence member of the SortRequest.