svn commit: r712575 - in /ofbiz/trunk/applications: content/webapp/content/WEB-INF/actions/cms/Search.groovy ecommerce/webapp/ecommerce/WEB-INF/actions/content/Search.groovy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r712575 - in /ofbiz/trunk/applications: content/webapp/content/WEB-INF/actions/cms/Search.groovy ecommerce/webapp/ecommerce/WEB-INF/actions/content/Search.groovy

lektran
Author: lektran
Date: Sun Nov  9 14:23:56 2008
New Revision: 712575

URL: http://svn.apache.org/viewvc?rev=712575&view=rev
Log:
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);
 }