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?
Order of boolean operators without parentheses
-
- Posts: 1298
- Joined: Thu Feb 22, 2007 5:32 pm
Re: Order of boolean operators without parentheses
Dear user,
Thank you very much for your really valuable feedback.
Our technical team has already made changes in accordance with the CQL specification for our next OPS version release (v 3.2) that we will be announcing as a BETA version in the next few weeks. Please follow our Announcement section - OPS Forum where we announce maintenance and other release information for the date of BETA start.
Regards,
OPS support
Thank you very much for your really valuable feedback.
Our technical team has already made changes in accordance with the CQL specification for our next OPS version release (v 3.2) that we will be announcing as a BETA version in the next few weeks. Please follow our Announcement section - OPS Forum where we announce maintenance and other release information for the date of BETA start.
Regards,
OPS support