Author: jerome
Date: Fri Mar  3 15:15:02 2006
New Revision: 382959

URL: http://svn.apache.org/viewcvs?rev=382959&view=rev
Log:
Change the way multi-valued fields are displayed in HitDetails

Modified:
    lucene/nutch/trunk/src/java/org/apache/nutch/searcher/HitDetails.java

Modified: lucene/nutch/trunk/src/java/org/apache/nutch/searcher/HitDetails.java
URL: 
http://svn.apache.org/viewcvs/lucene/nutch/trunk/src/java/org/apache/nutch/searcher/HitDetails.java?rev=382959&r1=382958&r2=382959&view=diff
==============================================================================
--- lucene/nutch/trunk/src/java/org/apache/nutch/searcher/HitDetails.java 
(original)
+++ lucene/nutch/trunk/src/java/org/apache/nutch/searcher/HitDetails.java Fri 
Mar  3 15:15:02 2006
@@ -121,20 +121,13 @@
 
   /** Display as HTML. */
   public String toHtml() {
-    String[] vals = null;
     StringBuffer buffer = new StringBuffer();
     buffer.append("<ul>\n");
     for (int i = 0; i < length; i++) {
       buffer.append("<li>");
       buffer.append(fields[i]);
       buffer.append(" = ");
-      vals = getValues(fields[i]);
-      for (int j=0; j<vals.length; j++) {
-        buffer.append(Entities.encode(vals[j]));
-        if (j<(vals.length-1)) {
-          buffer.append(",");
-        }
-      }
+      buffer.append(Entities.encode(values[i]));
       buffer.append("</li>\n");
     }
     buffer.append("</ul>\n");


Reply via email to