From b846f585fa7bce28d1651224c37398d2c6e64b9f Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Tue, 11 Sep 2012 20:24:27 +0200 Subject: [PATCH] fixed a bug with size_i field usage --- .../yacy/cora/services/federated/solr/JsonResponseWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/cora/services/federated/solr/JsonResponseWriter.java b/source/net/yacy/cora/services/federated/solr/JsonResponseWriter.java index d2e2fff68..9bdbb9d09 100644 --- a/source/net/yacy/cora/services/federated/solr/JsonResponseWriter.java +++ b/source/net/yacy/cora/services/federated/solr/JsonResponseWriter.java @@ -146,7 +146,7 @@ public class JsonResponseWriter implements QueryResponseWriter { solitaireTag(writer, "pubDate", HeaderFramework.formatRFC1123(d)); continue; } - if (YaCySchema.size_i.equals(fieldName)) { + if (YaCySchema.size_i.name().equals(fieldName)) { int size = value.stringValue() != null && value.stringValue().length() > 0 ? Integer.parseInt(value.stringValue()) : -1; int sizekb = size / 1024; int sizemb = sizekb / 1024;