YAZ User's Guide and Reference
Prev | Chapter 3. Building clients with ZOOM | Next

# Search objects

Search objects defines how result sets are obtained. They act like queries.

         Z3950_search Z3950_search_create(void);

         void Z3950_search_destroy(Z3950_search s);

         int Z3950_search_prefix(Z3950_search s, const char *str);

         int Z3950_search_sortby(Z3950_search s, const char *criteria);

Create search objects using `Z3950_search_create` and destroy them by calling `Z3950_search_destroy`. RPN-queries can be specified in PQF notation by using the function `Z3950_search_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_search_sortby` specifies a sort criteria using the same string notation for sort as offered by the YAZ client.

Prev | Home | Next
Building clients with ZOOM | Up | Result sets