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

Enrico Silterra es287 at cornell.edu
Sat Mar 26 01:34:09 CET 2011


here is the interaction, connecting to yaz proxy,
which connects to a voyager z39.50 server.

yaz-client -a apdu.log lxxxxxx:9090/voyager
Connecting...OK.
Sent initrequest.
Connection accepted by v3 target.
ID     : 34
Name   : Voyager LMS - Z39.50 Server (YAZ Proxy)
Version: 2007.1.1/1.3.6
Options: search present
Elapsed: 1.674038
Z> querytype cql
Z>  f rec.id=1001 or rec.id=1002
Sent searchRequest.
Received SearchResponse.
Search was a success.
Number of hits: 10000
records returned: 0
Elapsed: 7.503895
Z> quit


initRequest {
   protocolVersion BITSTRING(len=1) 111
   options BITSTRING(len=2) 11101001-1010001
   preferredMessageSize 1048576
   maximumRecordSize 1048576
   implementationId '81'
   implementationName 'YAZ'
   implementationVersion '3.0.52 e687cb7eb87c841f0d1a374174d51d30371f2d97'
}
initResponse {
   protocolVersion BITSTRING(len=1) 111
   options BITSTRING(len=1) 11
   preferredMessageSize 32768
   maximumRecordSize 1048576
   result TRUE
   implementationId '34'
   implementationName 'Voyager LMS - Z39.50 Server (YAZ Proxy)'
   implementationVersion '2007.1.1/1.3.6'
}
searchRequest {
   smallSetUpperBound 0
   largeSetLowerBound 1
   mediumSetPresentNumber 0
   replaceIndicator TRUE
   resultSetName 'default'
   databaseNames {
       'voyager'
   }
   {
       query choice
       type_104 {
           OID: 1 2 840 10003 16 2
           type_104 choice
           {
               'rec.id=1001 or rec.id=1002'
           }
       }
   }
}
searchResponse {
   resultCount 10000
   numberOfRecordsReturned 0
   nextResultSetPosition 1
   searchStatus TRUE
   presentStatus 0
}



On Fri, Mar 25, 2011 at 5:12 PM, Mike Taylor <mike at indexdata.com> wrote:
> On 25 March 2011 18:57, Enrico Silterra <es287 at cornell.edu> wrote:
>> with yaz-client, this works fine:
>>
>> Z> querytype cql
>> Z> f rec.id=1001
>> Sent searchRequest.
>> Received SearchResponse.
>> Search was a success.
>> Number of hits: 1
>> records returned: 0
>> Elapsed: 0.013109
>>
>> however,
>>
>>  f rec.id=1001 or rec.id=1002
>> Sent searchRequest.
>> Received SearchResponse.
>> Search was a success.
>> Number of hits: 10000
>> records returned: 0
>> Elapsed: 7.358608
>>
>> this should have been 2 records; instead, it's 10,000
>> huh?
>
> That is definitely wrong.  Sounds like an error on the server side.
>
> To be more sure, can you please run this yaz-client with the "-a -"
> command-line option that shows the protocol packets, and post the
> generated output?
>
> What is the server?
>



-- 
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
http://www.library.cornell.edu/dlit
"Out of the crooked timber of humanity no straight thing was ever made"
CONFIDENTIALITY NOTE
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