yaz_search

yaz_search -- Prepares for a search

Description

int yaz_search ( int id, string type, string query)

yaz_search( ) prepares for a search on the target with given id . The type represents the query type - only " rpn " is supported now in which case the third argument specifies a Type-1 query (RPN ) .

The RPN query

טבלה 1 .

Syntax
@attr set type=value query

דוגמה 1 .

Query




matches documents where "computer" occur. No attributes are specified.

 
"

 
donald

 
knuth

 
"



matches documents where "donald knuth" occur.

For the query

 
@attr

 
1=4

 
art



attribute type is 1 (Bib-1 use), attribute value is 4 Title), so this should match documents where art occur in the title.

Another more complex one :

 
@attrset

 
gils

 
@and

 
@attr

 
1=4

 
art

 
@attr

 
1=1003

 
"

 
donald

 
knuth

 
"



The query as a whole uses the GILS attributeset. The query matches documents where art occur in the title and in which donald knuth occur in the author.