# Simple cat "cat" comp.os.linux xml:element "" "=" "prox/>=/5/word" ("cat") ((dog)) all prox # index relation term title = "fish" title exact fish title any fish title all fish title > 9 title >= 23 dc.title any "fish chips" 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 cat or dog cat and fish cat not frog (cat not frog) "cat" not "fish food" 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) # Prox cat prox hat 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/= "smith") ((cat prox hat)) # Special characters (cat^) "cat" "^cat says \"fish\"" "cat*fish" cat?dog (("^cat*fishdog\"horse?")) # Nesting Parens (((cat or dog) or horse) and frog) (cat and dog) or (horse and frog) (cat and (horse or frog)) and chips # Prefix Maps > 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/wrong term a prox/wrong b () (a index any fish) (cat any dog or ()) title = ("illegal parentheses") "quoted" any "illegal quotes" > illegal="urn:missingQuery" "fish" and > illegal="urn:invalidPrefixLocation" "chips"