jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@adobe.com>
Subject Re: [GQL] Semantics of OR in GQL queries
Date Thu, 09 Jan 2014 21:52:11 GMT
On 09.01.2014, at 01:23, Michael Dürig <mduerig@apache.org> wrote:

>>     property:one OR property:two other:alpha OR other:beta
>> 	=>
>>     (property = one OR property = two) AND (other = alpha OR other = beta)
> 
> Which would be a rather strange interpretation though. Usually AND has higher precedence
than OR.

But it actually makes sense. Otherwise you wouldn't be able to check for different values
of a property (common case) - given that there is no concept of brackets/groups in GQL.

Cheers,
Alex
Mime
View raw message