mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Lucene upgrade to 2.4.1: MOB-587: First round of fixes for the query parser
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13633 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,7 +24,8 @@
|
||||
*/
|
||||
package org.alfresco.util;
|
||||
|
||||
import org.alfresco.repo.search.impl.lucene.QueryParser;
|
||||
import org.alfresco.repo.search.impl.lucene.LuceneQueryParser;
|
||||
import org.apache.lucene.queryParser.QueryParser;
|
||||
|
||||
/**
|
||||
* Helper class to provide conversions between different search languages
|
||||
@@ -306,7 +307,7 @@ public class SearchLanguageConversion
|
||||
char[] chars = new char[] { ch };
|
||||
String unescaped = new String(chars);
|
||||
// check it
|
||||
String escaped = QueryParser.escape(unescaped);
|
||||
String escaped = LuceneQueryParser.escape(unescaped);
|
||||
if (!escaped.equals(unescaped))
|
||||
{
|
||||
// it was escaped
|
||||
|
Reference in New Issue
Block a user