[Yazlist] baffled by cql, or maybe rec.id

Enrico Silterra es287 at cornell.edu
Fri Mar 25 16:28:47 CET 2011

I just don't understand how to use CQL, or if CQL works with yaz proxy or what.

here is some xml i am submitting with SOAP --
SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    SRW:searchRetrieveRequest xmlns:SRW="http://www.loc.gov/zing/srw/">

i removed less than signs to make this readable.
how can i specify that I want to retrieve various rec.id values

a) rec.id = 1001 OR rec.id = 1002  gives nonsense results, 10,000 records ??

b) OR ( = rec.id 1001) = (rec.id  1002)  syntax error.

c) rec.id any 1001 or rec.id any 1002

for what  it's worth, i am simply trying to retrieve records by bib id
with yaz proxy,
so i need a bunch of alternative that match on the 001 marc field.

is the default format for these queries CQL, or something else?

i either get nonsense results, or syntax errors on what seem like
perfectly sensible queries.

 for what it's worth:
i have this

index.rec.id                            = 1=12

in pqf.properties.

and this in the config file used by yaz proxy.

<!-- use attributes -->
    <attribute type="1" value="1-12,13-1010,1013-1023,1025-1030"/>

12 is the attribute that describes the 'record id', or local identifier.

i no longer remember how i know that.  I think maybe Larry Dixon at
LOC clued me into



Enrico Silterra Software Engineer
501 Olin Library Cornell University Ithaca NY 14853
Voice: 607-255-6851 Fax:     607-255-6110 E-mail: es287 at cornell.edu
"Out of the crooked timber of humanity no straight thing was ever made"
The information transmitted, including attachments, is intended only
for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance
upon, this information by persons or entities other than the intended
recipient is prohibited. If you received this in error, please contact
the sender and destroy any copies of this document.

More information about the Yazlist mailing list