+
+ /**
+ * Official CQL grammar allows registered keywords like 'and/or/not/sortby/prox'
+ * to be used unquoted in terms. This constructor allows to create an instance
+ * of a parser that prohibits this behavior while sacrificing compatibility.
+ * @param compat CQL version compatibility
+ * @param allowKeywordTerms when false registered keywords are disallowed in unquoted terms
+ */
+ public CQLParser(int compat, boolean allowKeywordTerms) {
+ this.compat = V1POINT2;
+ this.allowKeywordTerms = allowKeywordTerms;
+ }
+