]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-4704 - Added hack to work around Nuxeo regression tokenizing on periods.
authorPatrick Schmitz <pschmitz@berkeley.edu>
Tue, 13 Dec 2011 05:24:48 +0000 (05:24 +0000)
committerPatrick Schmitz <pschmitz@berkeley.edu>
Tue, 13 Dec 2011 05:24:48 +0000 (05:24 +0000)
services/common/src/main/java/org/collectionspace/services/common/query/nuxeo/QueryManagerNuxeoImpl.java

index 470476f2511e4f0e53ad6e199a5cf0634d649c9b..d5ecc330512465ad7f39ba9e3b6dd4ad2c322019 100644 (file)
@@ -65,7 +65,9 @@ public class QueryManagerNuxeoImpl implements IQueryManager {
        private static Pattern kwdTokenizer = Pattern.compile("(?:(['\"])(.*?)(?<!\\\\)(?>\\\\\\\\)*\\1|([^ ]+))");\r
        private static Pattern unescapedDblQuotes = Pattern.compile("(?<!\\\\)\"");\r
        private static Pattern unescapedSingleQuote = Pattern.compile("(?<!\\\\)'");\r
-       private static Pattern kwdSearchProblemChars = Pattern.compile("[\\:\\(\\)\\*\\%]");\r
+       //private static Pattern kwdSearchProblemChars = Pattern.compile("[\\:\\(\\)\\*\\%]");\r
+       // HACK to work around Nuxeo regression that tokenizes on '.'. \r
+       private static Pattern kwdSearchProblemChars = Pattern.compile("[\\:\\(\\)\\*\\%\\.]");\r
        private static Pattern kwdSearchHyphen = Pattern.compile(" - ");\r
 \r
        private static String getLikeForm() {\r