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
CCL: split-list deals with multiple use attr YAZ-844
[yaz-moved-to-github.git]
/
test
/
cql2pqfsample
diff --git
a/test/cql2pqfsample
b/test/cql2pqfsample
index
8bc6a96
..
0740b48
100644
(file)
--- a/
test/cql2pqfsample
+++ b/
test/cql2pqfsample
@@
-1,19
+1,15
@@
-# $Id: cql2pqfsample,v 1.1 2008-01-06 21:48:23 adam Exp $
# CQL queries for testing.
# CQL queries for testing.
-# from http://www.loc.gov/z3950/agency/zing/cql/sample-queries.html
+# Read by test_cql2pqf.sh
+# No blank lines!
+#
# Simple Term
# Simple Term
-
a
a b
"a b"
a
a b
"a b"
-
# Index Relation Term
# Index Relation Term
-
title = fish
dc.title = fish
title = fish
dc.title = fish
-
# Simple Boolean
# Simple Boolean
-
cat or dog
cat and fish
cat not frog
cat or dog
cat and fish
cat not frog
@@
-23,4
+19,31
@@
xml and "prox///"
fred and any
((fred or all))
a or b and c not d
fred and any
((fred or all))
a or b and c not d
-
+# Masking/Truncation
+*a
+a*
+*a*
+a*a
+?a
+a?
+?a?
+a?a
+a#a?
+*a#
+a#a*
+a*3
+# Escape sequences (sh reads one slash, though)
+a*\\3
+\\*a#
+\\*a*b#
+\\"
+@and
+a^
+^a
+^a^
+\\^
+^a\\^
+# masking modifiers
+dc.title=/unmasked a*b
+dc.title=/masked a*b
+dc.title=/regexp a.*b