Author: lewismc
Date: Thu Jun 20 20:39:07 2013
New Revision: 1495171

URL: http://svn.apache.org/r1495171
Log:
set microformats-reltag add tag to debug

Modified:
    
nutch/trunk/src/plugin/microformats-reltag/src/java/org/apache/nutch/microformats/reltag/RelTagParser.java

Modified: 
nutch/trunk/src/plugin/microformats-reltag/src/java/org/apache/nutch/microformats/reltag/RelTagParser.java
URL: 
http://svn.apache.org/viewvc/nutch/trunk/src/plugin/microformats-reltag/src/java/org/apache/nutch/microformats/reltag/RelTagParser.java?rev=1495171&r1=1495170&r2=1495171&view=diff
==============================================================================
--- 
nutch/trunk/src/plugin/microformats-reltag/src/java/org/apache/nutch/microformats/reltag/RelTagParser.java
 (original)
+++ 
nutch/trunk/src/plugin/microformats-reltag/src/java/org/apache/nutch/microformats/reltag/RelTagParser.java
 Thu Jun 20 20:39:07 2013
@@ -105,7 +105,10 @@ public class RelTagParser implements Htm
               if ("tag".equalsIgnoreCase(relNode.getNodeValue())) {
                 String tag = parseTag(hrefNode.getNodeValue());
                 if (!StringUtil.isEmpty(tag)) {
-                  tags.add(tag);
+                  if(!tags.contains(tag)){
+                    tags.add(tag);
+                    LOG.debug("Adding tag: " + tag + " to tag set.");
+                  }
                 }
               }
             }


Reply via email to