*** empty log message ***
[cql-java-moved-to-github.git] / test / regression / queries.raw
1 # Simple
2
3 cat
4 "cat"
5 comp.os.linux
6 xml:element
7 "<xml:element>"
8 "="
9 "prox/>=/5/word"
10 ("cat")
11 ((dog))
12
13 # index relation term
14
15 title = "fish"
16 title exact fish
17 title any fish
18 title all fish
19 title > 9
20 title >= 23
21 dc.title any "fish chips"
22 dc.title any/stem fish
23 dc.fish all/stem/fuzzy "fish chips"
24 (title any frog)
25 ((dc.title any/stem "frog pond"))
26
27 # Simple Boolean
28
29 cat or dog
30 cat and fish
31 cat not frog
32 (cat not frog)
33 "cat" not "fish food"
34 xml and "prox///word/"
35 a or b and c not d
36
37 # I/R/T plus Boolean
38
39 bath.author any fish and dc.title all "cat dog"
40 (title any/stem "fish dog" or "and")
41
42 # Prox
43
44 cat prox hat
45 cat prox/=/3/word/ordered hat
46 cat prox//3 hat
47 "fish food" prox///sentence "and"
48 title all "chips frog" prox//5/word "any"
49 (dc.author exact "jones" prox//5 title >= "smith")
50 ((cat prox hat))
51
52 # Special characters
53 (cat^)
54 "cat"
55 "^cat says \"fish\""
56 "cat*fish"
57 cat?dog
58 (("^cat*fishdog\"horse?"))
59
60 # Nesting Parens
61
62 (((cat or dog) or horse) and frog)
63 (cat and dog) or (horse and frog)
64 (cat and (horse or frog)) and chips
65
66 # Lame searches
67
68 "any" or "all:stem" and "all" exact "any" prox///word "prox"="fuzzy"
69 ((((((((("any")))))))))
70
71
72 # Invalid searches [should error]
73
74 >
75 ===
76 cat or
77 index any
78 index any/wrong term
79 a prox/wrong b
80 ()
81 (a
82 index any fish)
83 (cat any dog or ())
84 fred and any
85 ((fred or all))
86 sorry = (mike)