X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fcqlsample;h=5b5b4692382612df9791b5a185cd21000410ac4c;hb=3db79025b276f232a4ab672f1ba996a0ccc64608;hp=3fba953ec6705c61b23ebc545fe400c3288a2265;hpb=06151390083d3f8875bf7ed4b113942f6cccf9f4;p=yaz-moved-to-github.git diff --git a/test/cqlsample b/test/cqlsample index 3fba953..5b5b469 100644 --- a/test/cqlsample +++ b/test/cqlsample @@ -1,4 +1,4 @@ -# $Id: cqlsample,v 1.2 2004-03-10 18:50:56 adam Exp $ +# $Id: cqlsample,v 1.4 2008-01-06 17:37:13 adam Exp $ # CQL queries for testing. # from http://www.loc.gov/z3950/agency/zing/cql/sample-queries.html # Simple Term @@ -18,7 +18,7 @@ prox # Index Relation Term title = "fish" -title exact fish +title == fish title any fish title all fish title > 9 @@ -28,7 +28,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" +dc.title = "fish frog chicken" dc.title =/rel.algorithm=CORI squid creator any/f.foo/b.bar>1 "sanderson taylor" @@ -56,7 +56,7 @@ cat prox/distance=3/unit=word/ordered hat cat prox/distance<3 hat "fish food" prox/unit=sentence and title all "chips frog" prox/distance<=5 exact -(dc.author exact "jones" prox/distance>5/unit=element title >= "smith") +(dc.author == "jones" prox/distance>5/unit=element title >= "smith") a and/rel.SumOfScores b a and/rel.algorithm=CORI b @@ -83,7 +83,7 @@ cat?dog # Lame Searches -any or all:stem and all exact any prox prox=fuzzy +any or all:stem and all == any prox prox=fuzzy (((((((((any))))))))) "" > any > any = exact any > any @@ -101,4 +101,15 @@ missingParen any fish) title = ("illegal parentheses") > illegal="urn:missingQuery" - +# free-form term OK) +a b +a b c +a.b c +and b c +all a +a any b +dc.title a b c and d + +# free-form term (Syntax error) +a b.c +a and