Author: lektran
Date: Sun Nov 9 14:23:56 2008
New Revision: 712575
URL:
http://svn.apache.org/viewvc?rev=712575&view=revLog:
Brought the Lucene QueryParser.parse method into line with 2.2.0
Modified:
ofbiz/trunk/applications/content/webapp/content/WEB-INF/actions/cms/Search.groovy
ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/content/Search.groovy
Modified: ofbiz/trunk/applications/content/webapp/content/WEB-INF/actions/cms/Search.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/WEB-INF/actions/cms/Search.groovy?rev=712575&r1=712574&r2=712575&view=diff==============================================================================
--- ofbiz/trunk/applications/content/webapp/content/WEB-INF/actions/cms/Search.groovy (original)
+++ ofbiz/trunk/applications/content/webapp/content/WEB-INF/actions/cms/Search.groovy Sun Nov 9 14:23:56 2008
@@ -68,7 +68,8 @@
if (queryLine || siteId) {
Query query = null;
if (queryLine) {
- query = QueryParser.parse(queryLine, "content", analyzer);
+ queryParser = new QueryParser("content", analyzer);
+ query = queryParser.parse(queryLine);
combQuery.add(query, true, false);
}
Debug.logInfo("in search, combQuery(0):" + combQuery, "");
Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/content/Search.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/content/Search.groovy?rev=712575&r1=712574&r2=712575&view=diff==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/content/Search.groovy (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/content/Search.groovy Sun Nov 9 14:23:56 2008
@@ -71,7 +71,8 @@
//Debug.logInfo("in search, combQuery(1):" + combQuery, "");
if (queryLine && analyzer) {
Query query = null;
- query = QueryParser.parse(queryLine, "content", analyzer);
+ queryParser = new QueryParser("content", analyzer);
+ query = queryParser.parse(queryLine);
combQuery.add(query, true, false);
}