fix field counter for multi-fields in html writer for the solr servlet

pull/1/head
Michael Peter Christen 10 years ago
parent fdba8e2fa0
commit a67a465415

@ -200,9 +200,10 @@ public class HTMLResponseWriter implements QueryResponseWriter {
kv.put(fieldName, field2string(type, value.stringValue())); kv.put(fieldName, field2string(type, value.stringValue()));
} }
} else { } else {
int c = 0;
for (int i = fidx1; i < fidx2; i++) { for (int i = fidx1; i < fidx2; i++) {
String sv = fields.get(i).stringValue(); String sv = fields.get(i).stringValue();
kv.put(fieldName + "_" + i, field2string(type, sv)); kv.put(fieldName + "_" + c++, field2string(type, sv));
} }
} }

Loading…
Cancel
Save