- Allow keywords to be used unquoted as search terms.
[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/>=/5/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
31 # Simple Boolean
32
33 cat or dog
34 cat and fish
35 cat not frog
36 (cat not frog)
37 "cat" not "fish food"
38 xml and "prox///"
39 fred and any
40 ((fred or all))
41 a or b and c not d
42
43 # I/R/T plus Boolean
44
45 bath.author any fish and dc.title all "cat dog"
46 (title any/stem "fish dog" or and)
47
48 # Prox
49
50 cat prox hat
51 cat prox/=/3/word/ordered hat
52 cat prox//3 hat
53 "fish food" prox///sentence and
54 title all "chips frog" prox/>=/5 exact
55 (dc.author exact "jones" prox/</5/element title >= "smith")
56 ((cat prox hat))
57
58 # Special characters
59 (cat^)
60 "cat"
61 "^cat says \"fish\""
62 "cat*fish"
63 cat?dog
64 (("^cat*fishdog\"horse?"))
65
66 # Nesting Parens
67
68 (((cat or dog) or horse) and frog)
69 (cat and dog) or (horse and frog)
70 (cat and (horse or frog)) and chips
71
72 # Lame searches
73
74 any or all:stem and all exact any prox prox=fuzzy
75 (((((((((any)))))))))
76 ("")
77
78 # Invalid searches [should error]
79
80 >
81 ===
82 cat or
83 index any 
84 index any/wrong term
85 a prox/wrong b
86 ()
87 (a
88 index any fish)
89 (cat any dog or ())
90 title = ("illegal parentheses")
91 "quoted" any "illegal quotes"