mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Merged HEAD-BUG-FIX (Cloud33/4.3) to HEAD (Cloud33/4.3)
62931: Merged PLATFORM1 (Cloud33) to HEAD-BUG-FIX (Cloud33/4.3) 62696: ACE-480 Split Data-Model into Lucene Independent and Legacy Lucene Project git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62986 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -35,6 +35,7 @@ import org.alfresco.service.cmr.search.ResultSet;
|
||||
import org.alfresco.service.cmr.search.SearchParameters;
|
||||
import org.alfresco.service.cmr.search.SearchService;
|
||||
import org.alfresco.util.GUID;
|
||||
import org.alfresco.util.SearchLanguageConversion;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.lucene.queryParser.QueryParser;
|
||||
@@ -158,7 +159,7 @@ public class KeywordSearch extends DeclarativeWebScript
|
||||
// Escape special characters in the terms, so that they can't confuse the parser
|
||||
for (int i=0; i<terms.length; i++)
|
||||
{
|
||||
terms[i] = QueryParser.escape(terms[i]);
|
||||
terms[i] = SearchLanguageConversion.escapeLuceneQuery(terms[i]);
|
||||
}
|
||||
|
||||
Map<String, Object> statementModel = new HashMap<String, Object>(7, 1.0f);
|
||||
|
Reference in New Issue
Block a user