Order of boolean operators without parentheses
Posted: Thu Sep 01, 2016 1:31 pm
The CQL specification (https://www.loc.gov/standards/sru/cql/spec.html) states that boolean operators are evaluated left-to-right. This means that a search for plastic and bicycle or seat without parentheses should return results for the query (plastic and bicycle) or seat.
Instead, the actual results are returned based on the query plastic and (bicycle or seat), according to the <ops:query> tag.
In the CQL specification, a similar example with parentheses on the right (section 7, example 2) is provided not to show the default behaviour, but rather to illustrate how parentheses can be used to override the default behaviour.
Is compliance with the CQL specification anticipated?
Instead, the actual results are returned based on the query plastic and (bicycle or seat), according to the <ops:query> tag.
In the CQL specification, a similar example with parentheses on the right (section 7, example 2) is provided not to show the default behaviour, but rather to illustrate how parentheses can be used to override the default behaviour.
Is compliance with the CQL specification anticipated?