- Change the XCQL output to include the nasty and redundant
[cql-java-moved-to-github.git] / test / regression / queries.raw
index fd42750..d661557 100644 (file)
@@ -1,4 +1,5 @@
-# Simple
+
+# Simple 
 
 cat
 "cat"
@@ -6,9 +7,11 @@ comp.os.linux
 xml:element
 "<xml:element>"
 "="
-"prox/word/>=/5"
+"prox/>=/5/word"
 ("cat")
 ((dog))
+all
+prox
 
 # index relation term
 
@@ -23,6 +26,7 @@ dc.title any/stem fish
 dc.fish all/stem/fuzzy "fish chips"
 (title any frog)
 ((dc.title any/stem "frog pond"))
+dc.title scr "fish frog chicken"
 
 # Simple Boolean
 
@@ -31,22 +35,24 @@ cat and fish
 cat not frog
 (cat not frog)
 "cat" not "fish food"
-xml and "prox/word/"
+xml and "prox///"
+fred and any
+((fred or all))
 a or b and c not d
 
 # I/R/T plus Boolean
 
 bath.author any fish and dc.title all "cat dog"
-(title any/stem "fish dog" or "and")
+(title any/stem "fish dog" or and)
 
 # Prox
 
 cat prox hat
-cat prox/word/=/3/ordered hat
-cat prox///3 hat
-"fish food" prox/sentence "and"
-title all "chips frog" prox/word//5 "any"
-(dc.author exact "jones" prox///5 title >= "smith")
+cat prox/=/3/word/ordered hat
+cat prox//3 hat
+"fish food" prox///sentence and
+title all "chips frog" prox/>=/5 exact
+(dc.author exact "jones" prox/</5/element title >= "smith")
 ((cat prox hat))
 
 # Special characters
@@ -63,24 +69,32 @@ cat?dog
 (cat and dog) or (horse and frog)
 (cat and (horse or frog)) and chips
 
-# Lame searches
+# Prefix Maps
 
-"any" or "all:stem" and "all" exact "any" prox/word "prox"="fuzzy"
-((((((((("any")))))))))
+> foo="http://www.loc.gov/zing/cql/dc-indexes/" foo.title="fish"
+> "http://www.loc.gov/zing/cql/dc-indexes/" title="fish"
+> foo="http://www.loc.gov/zing/cql/dc-indexes" > ccg = "http://srw.o-r-g.org/indexSets/ccg/" foo.title="fish" and ccg.force=3
 
+# Lame searches
+
+any or all:stem and all exact any prox prox=fuzzy
+(((((((((any)))))))))
+""
+> any > any = exact any > any
 
 # Invalid searches [should error]
 
 >
 ===
 cat or
-index any
+index any 
 index any/wrong term
 a prox/wrong b
 ()
 (a
 index any fish)
 (cat any dog or ())
-fred and any
-((fred or all))
-sorry = (mike)
+title = ("illegal parentheses")
+"quoted" any "illegal quotes"
+> illegal="urn:missingQuery"
+"fish" and > illegal="urn:invalidPrefixLocation" "chips"