Author: jacopoc
Date: Thu Jun 7 22:09:22 2007 New Revision: 545412 URL: http://svn.apache.org/viewvc?view=rev&rev=545412 Log: Changed calls to old KeywordSearch methods to the newer KeywordIndex ones. In preparation of removing the KeywordSearch class. Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/makebogodata.jsp ofbiz/trunk/applications/product/src/org/ofbiz/product/product/KeywordIndex.java ofbiz/trunk/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/makebogodata.jsp URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/makebogodata.jsp?view=diff&rev=545412&r1=545411&r2=545412 ============================================================================== --- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/makebogodata.jsp (original) +++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/makebogodata.jsp Thu Jun 7 22:09:22 2007 @@ -30,7 +30,7 @@ while(prods.hasNext()) { GenericValue prod1 = (GenericValue)prods.next(); - KeywordSearch.induceKeywords(prod1); + KeywordIndex.indexKeywords(prod1); } if(request.getParameter("makeall") == null) { @@ -61,7 +61,7 @@ } Double price = new Double(2.99 + prod); GenericValue product = delegator.create("Product", UtilMisc.toMap("productId", "" + (cat*100 + prod), "primaryProductCategoryId", "" + (cat), "productName", "Product " + "" + (cat*100 + prod), "description", desc, "longDescription", longDesc, "defaultPrice", price)); - KeywordSearch.induceKeywords(product); + KeywordIndex.indexKeywords(product); delegator.create("ProductCategoryMember", UtilMisc.toMap("productId", "" + (cat*100 + prod), "productCategoryId", "" + (cat))); } } Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/product/KeywordIndex.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/product/KeywordIndex.java?view=diff&rev=545412&r1=545411&r2=545412 ============================================================================== --- ofbiz/trunk/applications/product/src/org/ofbiz/product/product/KeywordIndex.java (original) +++ ofbiz/trunk/applications/product/src/org/ofbiz/product/product/KeywordIndex.java Thu Jun 7 22:09:22 2007 @@ -211,7 +211,7 @@ toBeStored.add(productKeyword); } if (toBeStored.size() > 0) { - if (Debug.verboseOn()) Debug.logVerbose("[KeywordSearch.induceKeywords] Storing " + toBeStored.size() + " keywords for productId " + product.getString("productId"), module); + if (Debug.verboseOn()) Debug.logVerbose("[KeywordIndex.indexKeywords] Storing " + toBeStored.size() + " keywords for productId " + product.getString("productId"), module); if ("true".equals(UtilProperties.getPropertyValue("prodsearch", "index.delete.on_index", "false"))) { // delete all keywords if the properties file says to Modified: ofbiz/trunk/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java?view=diff&rev=545412&r1=545411&r2=545412 ============================================================================== --- ofbiz/trunk/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java (original) +++ ofbiz/trunk/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java Thu Jun 7 22:09:22 2007 @@ -128,7 +128,7 @@ toBeStored.add(workEffortKeyword); } if (toBeStored.size() > 0) { - if (Debug.verboseOn()) Debug.logVerbose("KeywordSearch induceKeywords Storing " + toBeStored.size() + " keywords for workEffortId " + workEffort.getString("workEffortId"), module); + if (Debug.verboseOn()) Debug.logVerbose("WorkEffortKeywordIndex indexKeywords Storing " + toBeStored.size() + " keywords for workEffortId " + workEffort.getString("workEffortId"), module); delegator.storeAll(toBeStored); } |
Free forum by Nabble | Edit this page |