From eedee6eabb6ed6ce73499a4ba19cc47eb689f1f3 Mon Sep 17 00:00:00 2001 From: reger Date: Thu, 5 Jan 2017 00:24:37 +0100 Subject: [PATCH] fix exception on URIMetadataNote instantiation with corrected id hash on host_id_s. Use Solr setField instead of addField to prevent java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String at net.yacy.kelondro.data.meta.URIMetadataNode.hosthash(URIMetadataNode.java:247) at net.yacy.search.query.SearchEvent.addNodes(SearchEvent.java:966) at net.yacy.peers.Protocol.solrQuery(Protocol.java:1242) at net.yacy.peers.RemoteSearch$2.run(RemoteSearch.java:349) --- source/net/yacy/kelondro/data/meta/URIMetadataNode.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/net/yacy/kelondro/data/meta/URIMetadataNode.java b/source/net/yacy/kelondro/data/meta/URIMetadataNode.java index 43b0828d6..5dea4f9b4 100644 --- a/source/net/yacy/kelondro/data/meta/URIMetadataNode.java +++ b/source/net/yacy/kelondro/data/meta/URIMetadataNode.java @@ -183,7 +183,7 @@ public class URIMetadataNode extends SolrDocument /* implements Comparable