Robert Sanderson wrote:
>> searchClause ::= '(' cqlQuery ')' | index relation searchTerm |
>> i.e. the middle "searchTerm" should be "searchClause".
you couldn't have put it more proper: defect.
> Please note that this allows for:
> dc.title = (dc.identifier any fish)
> Which to my mind is meaningless and the grammar shouldn't allow it, but to
Grammar should allow it. It is not meaningless.
> Mike's mind is equivalent to just:
> dc.identifer any fish
Certainly. What else?
> As per the previous time this was discussed, the only situation it's
> actually useful is:
> dc.title = (a or b and c)
No. It is also useful when you do
my.defaultindex my.defaultop = (q)
where q is a sub query. It allows developers or users to supply
semantics for _unqualified_ terms - not only the totally useless
dc.mydefaultindex any (dc.author = hansen and mankind)
which is equivalent to:
dc.author = hansen and dc.mydefault.index any mankind
(remember that boolean ops have lower priority than relations)
> which otherwise has to be spelt out as:
> dc.title = a or dc.title = b and dc.title = c
> which is still not very difficult, especially for code generated queries,
> which is and will be the majority of them, I suspect.
You have rejected the proposal and useful construct a number of times.
Don't tell me you don't want fix the defect because it is difficult to
> ,'/:. 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