Prepares for a search
(PHP 4 >= 4.0.1, PECL yaz:0.9-1.0.9)
Example 2679. Query Examples
You can search for simple terms, like this:
which matches documents where "computer" occur. No attributes are specified.
matches documents where "knuth donald" occur (provided that the server supports phrase search).
This query applies two attributes for the same phrase.
First attribute is type 1 (Bib-1 use), attribute value is 1003 (Author). Second attribute has is type 4 (structure), value 1 (phrase), so this should match documents where Donald Knuth is author.
would in infix notation look like
Another, more complex, one:
The query as a whole uses the GILS attributeset. The query matches
Code Examples / Notes » yaz_search
You can find the full Bib-1 attribute set at http://www.loc.gov/z3950/agency/defns/bib1.html
Quick Reference For Attribute Fields
(eg: "@attr 2=" refers to the Relation attribute)
1 = Use Field
2 = Relation
3 = Position
4 = Structure
5 = Truncate
6 = Completeness