Index: oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/FullTextSearchImpl.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/FullTextSearchImpl.java (revision 1797326) +++ oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/FullTextSearchImpl.java (revision ) @@ -42,14 +42,6 @@ */ public class FullTextSearchImpl extends ConstraintImpl { - /** - * Compatibility for Jackrabbit 2.0 single quoted phrase queries. - * (contains(., "word ''hello world'' word") - * These are queries that delimit a phrase with a single quote - * instead, as in the spec, using double quotes. - */ - public static final boolean JACKRABBIT_2_SINGLE_QUOTED_PHRASE = true; - final String selectorName; private final String relativePath; final String propertyName; Index: oak-core/src/main/java/org/apache/jackrabbit/oak/query/fulltext/FullTextParser.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- oak-core/src/main/java/org/apache/jackrabbit/oak/query/fulltext/FullTextParser.java (revision 1797326) +++ oak-core/src/main/java/org/apache/jackrabbit/oak/query/fulltext/FullTextParser.java (revision ) @@ -21,9 +21,7 @@ import java.text.ParseException; import java.util.ArrayList; -import org.apache.jackrabbit.oak.query.ast.FullTextSearchImpl; - /** * A parser for fulltext condition literals. The grammar is defined in the * @@ -38,6 +36,14 @@ */ public class FullTextParser { + /** + * Compatibility for Jackrabbit 2.0 single quoted phrase queries. + * (contains(., "word ''hello world'' word") + * These are queries that delimit a phrase with a single quote + * instead, as in the spec, using double quotes. + */ + private static final boolean JACKRABBIT_2_SINGLE_QUOTED_PHRASE = true; + private String propertyName; private String text; private int parseIndex; @@ -120,7 +126,7 @@ buff.append(c); } } - } else if (c == '\'' && FullTextSearchImpl.JACKRABBIT_2_SINGLE_QUOTED_PHRASE) { + } else if (c == '\'' && JACKRABBIT_2_SINGLE_QUOTED_PHRASE) { // basically the same as double quote parseIndex++; while (true) {