jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig <mdue...@apache.org>
Subject Re: [GQL] Semantics of OR in GQL queries
Date Thu, 09 Jan 2014 09:23:59 GMT

On 9.1.14 4:29 , Alexander Klimetschek wrote:
> Refitting the example to avoid the NPE and going through more cases:
>
>      type:asset property:one OR property:two
> 	=>
>      (type = asset) AND (property = one OR property = two)
>
>      type:asset property:one OR property:two OR property:three
> 	=>
>      (type = asset) AND (property = one OR property = two OR property = three)
>
>      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.

Michael

Mime
View raw message