[Yanel-commits] rev 44005 - public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search

michi at wyona.com michi at wyona.com
Wed Aug 5 12:12:21 CEST 2009


Author: michi
Date: 2009-08-05 12:12:21 +0200 (Wed, 05 Aug 2009)
New Revision: 44005

Modified:
   public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/SearchResource.java
Log:
log statements fixed and comment re CDATA added

Modified: public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/SearchResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/SearchResource.java	2009-08-05 10:11:18 UTC (rev 44004)
+++ public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/SearchResource.java	2009-08-05 10:12:21 UTC (rev 44005)
@@ -96,6 +96,7 @@
                     for (int i = 0; i < results.length; i++) {
                         sb.append("<y:result url=\"" + results[i].getURL() + "\">");
                         if (results[i].getTitle() != null) {
+                            // TODO: Somehow the CDATA vanishes (maybe because of the serializer ...)
                             sb.append("  <y:title><![CDATA[" + results[i].getTitle() + "]]></y:title>");
                         } else {
                             sb.append("  <y:no-title/>");
@@ -152,8 +153,8 @@
         if (rs != null && rs.size() > 0) {
             Result[] results = new Result[rs.size()];
             for (int i = 0; i < rs.size(); i++) {
-                log.warn("DEBUG: Title: " + rs.get(i).title);
-                log.warn("DEBUG: Excerpt: " + rs.get(i).excerpt);
+                //log.warn("DEBUG: Title: " + rs.get(i).title);
+                //log.warn("DEBUG: Excerpt: " + rs.get(i).excerpt);
                 results[i] = new Result(rs.get(i).url.toString(), null, null, null, null);
                 //results[i] = new Result(rs.get(i).url.toString(), rs.get(i).title, rs.get(i).excerpt, null, null);
             }



More information about the Yanel-commits mailing list