projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not set charsetNegotiation bit by default (breaks some targets).
[yaz-moved-to-github.git]
/
test
/
cqlsample
diff --git
a/test/cqlsample
b/test/cqlsample
index
c9f88b5
..
9bc2819
100644
(file)
--- a/
test/cqlsample
+++ b/
test/cqlsample
@@
-1,5
+1,5
@@
-# $Id: cqlsample,v 1.1 2004-03-10 16:34:30 adam Exp $
# CQL queries for testing.
# CQL queries for testing.
+# from http://www.loc.gov/z3950/agency/zing/cql/sample-queries.html
# Simple Term
cat
# Simple Term
cat
@@
-17,7
+17,7
@@
prox
# Index Relation Term
title = "fish"
# Index Relation Term
title = "fish"
-title exact fish
+title == fish
title any fish
title all fish
title > 9
title any fish
title all fish
title > 9
@@
-27,7
+27,7
@@
dc.title any/stem fish
dc.fish all/stem/fuzzy "fish chips"
(title any frog)
((dc.title any/stem "frog pond"))
dc.fish all/stem/fuzzy "fish chips"
(title any frog)
((dc.title any/stem "frog pond"))
-dc.title scr "fish frog chicken"
+dc.title = "fish frog chicken"
dc.title =/rel.algorithm=CORI squid
creator any/f.foo/b.bar>1 "sanderson taylor"
dc.title =/rel.algorithm=CORI squid
creator any/f.foo/b.bar>1 "sanderson taylor"
@@
-55,7
+55,7
@@
cat prox/distance=3/unit=word/ordered hat
cat prox/distance<3 hat
"fish food" prox/unit=sentence and
title all "chips frog" prox/distance<=5 exact
cat prox/distance<3 hat
"fish food" prox/unit=sentence and
title all "chips frog" prox/distance<=5 exact
-(dc.author exact "jones" prox/distance>5/unit=element title >= "smith")
+(dc.author == "jones" prox/distance>5/unit=element title >= "smith")
a and/rel.SumOfScores b
a and/rel.algorithm=CORI b
a and/rel.SumOfScores b
a and/rel.algorithm=CORI b
@@
-82,7
+82,7
@@
cat?dog
# Lame Searches
# Lame Searches
-any or all:stem and all exact any prox prox=fuzzy
+any or all:stem and all == any prox prox=fuzzy
(((((((((any)))))))))
""
> any > any = exact any > any
(((((((((any)))))))))
""
> any > any = exact any > any
@@
-100,4
+100,15
@@
missingParen any fish)
title = ("illegal parentheses")
> illegal="urn:missingQuery"
title = ("illegal parentheses")
> illegal="urn:missingQuery"
-
+# free-form term OK)
+a b
+a b c
+a.b c
+and b c
+all a
+a any b
+dc.title a b c and d
+
+# free-form term (Syntax error)
+a b.c
+a and