Changed proximity syntax for v1.1/1.2
[cql-java-moved-to-github.git] / test / regression / queries.raw
1
2 # Simple 
3
4 cat
5 "cat"
6 comp.os.linux
7 xml:element
8 "<xml:element>"
9 "="
10 "prox/distance<3/unit=word"
11 ("cat")
12 ((dog))
13 all
14 prox
15
16 # Index Relation Term
17
18 title = "fish"
19 title exact fish
20 title any fish
21 title all fish
22 title > 9
23 title >= 23
24 dc.title any "fish chips"
25 dc.title any/stem fish
26 dc.fish all/stem/fuzzy "fish chips"
27 (title any frog)
28 ((dc.title any/stem "frog pond"))
29 dc.title scr "fish frog chicken"
30 dc.title =/rel.algorithm=CORI squid
31 author any/f.foo/b.bar>1 "sanderson taylor"
32
33 # Simple Boolean
34
35 cat or dog
36 cat and fish
37 cat not frog
38 (cat not frog)
39 "cat" not "fish food"
40 xml and "prox///"
41 fred and any
42 ((fred or all))
43 a or b and c not d
44
45 # I/R/T plus Boolean
46
47 bath.author any fish and dc.title all "cat dog"
48 (title any/stem "fish dog" or and)
49
50 # Prox
51
52 cat prox hat
53 cat prox/distance=3/unit=word/ordered hat
54 cat prox/distance<3 hat
55 "fish food" prox/unit=sentence and
56 title all "chips frog" prox/distance<=5 exact
57 (dc.author exact "jones" prox/distance>5/unit=element title >= "smith")
58 ((cat prox hat))
59 a and/rel.SumOfScores b
60 a and/rel.algorithm=CORI b
61
62 # Special Characters
63
64 (cat^)
65 "cat"
66 "^cat says \"fish\""
67 "cat*fish"
68 cat?dog
69 (("^cat*fishdog\"horse?"))
70
71 # Nesting Parentheses
72
73 (((cat or dog) or horse) and frog)
74 (cat and dog) or (horse and frog)
75 (cat and (horse or frog)) and chips
76
77 # Prefix Maps
78
79 > foo="http://www.loc.gov/zing/cql/dc-indexes/" dc.title="fish"
80 > "http://www.loc.gov/zing/cql/dc-indexes/" title="fish"
81 > foo="http://www.loc.gov/zing/cql/dc-indexes" > ccg = "http://srw.o-r-g.org/cql/indexSets/ccg/" foo.title="fish" and ccg.force=3
82
83 # Lame Searches
84
85 any or all:stem and all exact any prox prox=fuzzy
86 (((((((((any)))))))))
87 ""
88 > any > any = exact any > any
89