Hi,

On Fri, Jun 13, 2025 at 3:29 PM Josh Stompro via Evergreen-dev <
[email protected]> wrote:

> Is my understanding correct?  Does it make sense to remove that CQL
> example?
>

It probably does, since most Z39.50 clients will just send RPN queries
anyway, but you could make the example work by doing the following:

[1] Create a CQL mapping file something like this

set.cql = http://www.loc.gov/zing/cql/context-sets/cql/v1.1/
set.dc = http://www.loc.gov/zing/cql/dc-indexes/v1.0/
index.cql.serverChoice = 1=1016
index.dc.title = 1=4
index.dc.author = 1=1003
index.dc.subject = 1=21
relation.< = 2=1
relation.eq = 2=3
relation.scr = 2=3
position.any = 3=3 6=1
structure.* = 4=1

(This was adapted from example 7.10 of
https://software.indexdata.com/yaz/doc/yaz.pdf)

[2] Run yaz-cilent like this:

yaz-client localhost:9999/CONS -q cql_mapping_file
Z> querytype cql2rpn
Z> find dc.title="throne of the crescent moon" and dc.author="ahmed"
Sent searchRequest.
Received SearchResponse.
Search was a success.
Number of hits: 1, setno 1
records returned: 0
Elapsed: 0.084814

Regards,

Galen
-- 
Galen Charlton
Implementation and IT Manager
Equinox Open Library Initiative
[email protected]
https://www.equinoxOLI.org
phone: 877-OPEN-ILS (673-6457)
direct: 770-709-5581
<http://evergreen-ils.org>
_______________________________________________
Evergreen-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to