Print

Print


On Wed, 3 Nov 2004, Thomas G. Habing wrote:

> As part of developing a CQL parser, I have been collecting sample
> queries.  My sample test page is:
>  http://gita.grainger.uiuc.edu/registry/sru/test.htm

Fantastic :)

> However, there seem to be a few examples floating around, such as:
>  title = ((dinosaur and bird) or dinobird)

Technically that is invalid and there is no reason to support it if you
don't want to, however if your parser chooses to accept it, then no one is
going to complain.

In particular, IndexData's parser accepts ()s where there should be a
term, but mine doesn't.


In the past I have found that this query is legal and very ugly:
   prox and/or <dc:title>and or</dc:title> and or

prox and / or < dc:title  > and   or    <  /dc:title > and  or
term bool/boolmodclause   prefix  index rel/relmodclause     term

HTH :)

Rob

       ,'/:.          Dr Robert Sanderson ([log in to unmask])
     ,'-/::::.        http://www.o-r-g.org/~azaroth/
   ,'--/::(@)::.      Dept. of Computer Science, Room 805
,'---/::::::::::.    University of Liverpool
____/:::::::::::::.  L5R Shop: http://www.cardsnotwords.com/
I L L U M I N A T I