Revision: 2921 http://openutils.svn.sourceforge.net/openutils/?rev=2921&view=rev Author: fgiust Date: 2010-08-29 07:16:56 +0000 (Sun, 29 Aug 2010) Log Message: ----------- added a note about the related JCR jira Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java 2010-08-29 07:09:52 UTC (rev 2920) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java 2010-08-29 07:16:56 UTC (rev 2921) @@ -106,12 +106,6 @@ return str; } - /* - * It seems that OR is a reserved word for jackrabbit/lucene, only if the search string start with word OR; if * - * OR is inside the text search string, search works (pe "Hello OR World"). Error on - * org.apache.jackrabbit.core.query.QueryImpl.execute() - * http://stackoverflow.com/questions/1311304/keyword-or-and-search-in-lucene - */ String parseString = StringUtils.trimToEmpty(str); // workaround for https://issues.apache.org/jira/browse/JCR-2732 @@ -125,6 +119,7 @@ parseString = parseString.replaceAll(escapeChars, "\\\\$0"); parseString = parseString.replaceAll("\'", "\'\'"); + // workaround for https://issues.apache.org/jira/browse/JCR-2733 if (StringUtils.startsWith(parseString, "OR ")) { parseString = parseString.replaceFirst("\\bOR\\b", "\"OR\""); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |