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:
@@ -39,7 +39,7 @@ import javax.faces.context.FacesContext;
|
||||
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.search.impl.lucene.QueryParser;
|
||||
import org.alfresco.repo.search.impl.lucene.LuceneQueryParser;
|
||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.Path;
|
||||
@@ -352,8 +352,8 @@ public class SearchContext implements Serializable
|
||||
{
|
||||
String escapedName = Repository.escapeQName(qname);
|
||||
RangeProperties rp = rangeAttributes.get(qname);
|
||||
String value1 = QueryParser.escape(rp.lower);
|
||||
String value2 = QueryParser.escape(rp.upper);
|
||||
String value1 = LuceneQueryParser.escape(rp.lower);
|
||||
String value2 = LuceneQueryParser.escape(rp.upper);
|
||||
attributeQuery.append(" +@").append(escapedName)
|
||||
.append(":").append(rp.inclusive ? "[" : "{").append(value1)
|
||||
.append(" TO ").append(value2).append(rp.inclusive ? "]" : "}");
|
||||
|
Reference in New Issue
Block a user