Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

yaz_search(3) [php man page]

YAZ_SEARCH(3)								 1							     YAZ_SEARCH(3)

yaz_search - Prepares for a search

SYNOPSIS
bool yaz_search (resource $id, string $type, string $query) DESCRIPTION
yaz_search(3) prepares for a search on the given connection. Like yaz_connect(3) this function is non-blocking and only prepares for a search to be executed later when yaz_wait(3) is called. PARAMETERS
o $id - The connection resource returned by yaz_connect(3). o $type - This parameter represents the query type - only "rpn" is supported now in which case the third argument specifies a Type-1 query in prefix query notation. o $query - The RPN query is a textual representation of the Type-1 query as defined by the Z39.50 standard. However, in the text represen- tation as used by YAZ a prefix notation is used, that is the operator precedes the operands. The query string is a sequence of tokens where white space is ignored unless surrounded by double quotes. Tokens beginning with an at-character ( @) are considered operators, otherwise they are treated as search terms. RPN Operators +-----------------------------+---------------------------------------------------+ | Construct | | | | | | | Description | | | | +-----------------------------+---------------------------------------------------+ | | | | @and query1 query2 | | | | | | | intersection of query1 and query2 | | | | | | | | @or query1 query2 | | | | | | | union of query1 and query2 | | | | | | | | @not query1 query2 | | | | | | | query1 and not query2 | | | | | | | | @set name | | | | | | | result set reference | | | | | | | | @attrset set query | | | | | | | specifies attribute-set for query. This con- | | | struction is only allowed once - in the beginning | | | of the whole query | | | | | | | |@attr [set] type=value query | | | | | | | applies attribute to query. The type and value | | | are integers specifying the attribute-type and | | | attribute-value respectively. The set, if given, | | | specifies the attribute-set. | | | | +-----------------------------+---------------------------------------------------+ You can find information about attributes at the Z39.50 Maintenance Agency site. Note If you would like to use a more friendly notation, use the CCL parser - functions yaz_ccl_conf(3) and yaz_ccl_parse(3). RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Query Examples You can search for simple terms, like this: computer The query "knuth donald" This query applies two attributes for the same phrase. The query @and @or a b @not @or c d e (a or b) and ((c or d) not e). Another, more complex, one: @attrset gils @and @attr 1=4 art @attr 1=2000 company art occur in the title (GILS,BIB-1) and in which company occur as Distributor (GILS). PHP Documentation Group YAZ_SEARCH(3)

Check Out this Related Man Page

wsreg_query_set_id(3WSREG)			    Product Install Registry Library Functions				wsreg_query_set_id(3WSREG)

NAME
wsreg_query_set_id, wsreg_query_get_id - set or get the uuid of a query SYNOPSIS
cc [flag ...] file ...-lwsreg [library ...] #include <wsreg.h> int wsreg_query_set_id(Wsreg_query *query, const char *uuid); char *wsreg_query_get_id(const Wsreg_query *query); DESCRIPTION
The wsreg_query_set_id() function sets the uuid (universal unique identifier) specified by uuid in the query specified by query. If a uuid has already been set in the specified query, the resources associated with the previously set uuid are released. The wsreg_query_get_id() function returns the uuid associated with the query specified by query. The resulting string is not a copy and must not be released by the caller. RETURN VALUES
The wsreg_query_set_id() function returns non-zero if the uuid was set correctly; otherwise 0 is returned. The wsreg_query_get_id() function returns the uuid associated with the specified query. USAGE
The query identifies fields used to search for a specific component in the product install registry. By specifying the uuid, the component search is narrowed to all components in the product install registry that have the specified uuid. Other fields can be specified in the same query to further narrow the search. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
wsreg_get(3WSREG), wsreg_initialize(3WSREG), towsreg_query_create(3WSREG), attributes(5) SunOS 5.10 22 Sep 2000 wsreg_query_set_id(3WSREG)
Man Page