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

michi at wyona.com michi at wyona.com
Mon Feb 7 22:04:02 CET 2011


Author: michi
Date: 2011-02-07 22:04:02 +0100 (Mon, 07 Feb 2011)
New Revision: 56585

Modified:
   public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/SearchResource.java
Log:
log level fixed

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	2011-02-07 21:02:55 UTC (rev 56584)
+++ public/yanel/trunk/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/SearchResource.java	2011-02-07 21:04:02 UTC (rev 56585)
@@ -230,10 +230,10 @@
             org.wyona.yarep.core.Node[] nodes = null;
             String propertyName = getResourceConfigProperty("property-name");
             if (propertyName != null) {
-                log.warn("DEBUG: Search property '" + propertyName + "': " + query);
+                log.debug("Search property '" + propertyName + "': " + query);
                 nodes = getRealm().getRepository().getSearcher().searchProperty(propertyName, query, "/");
             } else {
-                log.warn("DEBUG: Search fulltext: " + query);
+                log.debug("Search fulltext: " + query);
                 nodes = getRealm().getRepository().getSearcher().search(query);
             }
 
@@ -263,8 +263,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.debug("Title: " + rs.get(i).title);
+                //log.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);
             }
@@ -337,7 +337,7 @@
                     //parser.parse(in, new org.apache.tika.sax.WriteOutContentHandler(writer), tikaMetaData);
                     //String title = writer.toString().trim();
 
-                    log.warn("DEBUG: Keywords: " + tikaMetaData.get(org.apache.tika.metadata.Metadata.KEYWORDS));
+                    log.debug("Keywords: " + tikaMetaData.get(org.apache.tika.metadata.Metadata.KEYWORDS));
 
                     String title = xhtmlBean.getTitle();
                     if (title != null && title.length() > 0) {



More information about the Yanel-commits mailing list