Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
do not put the fulltext field text_t into the search cache because it is not used there and uses a lot of memory
orbiter2562f052b9fa
diff --git a/source/net/yacy/peers/Protocol.java b/source/net/yacy/peers/Protocol.javaindex 70f3d201d..dc9ebcdf9 100644--- a/source/net/yacy/peers/Protocol.java+++ b/source/net/yacy/peers/Protocol.java@@ -1156,7 +1156,16 @@ public final class Protocol {// passed all checks, store urlif (!localsearch) {- docs.add(event.query.getSegment().fulltext().getDefaultConfiguration().toSolrInputDocument(doc));+ // put the remote documents to the local index. We must convert the solr document to a solr input document:+ SolrInputDocument sid = event.query.getSegment().fulltext().getDefaultConfiguration().toSolrInputDocument(doc);++ // after this conversion we can remove the largest and not used field text_t and synonyms_sxt from the document+ // because that goes into a search cache and would take a lot of memory in the search cache+ doc.removeFields(CollectionSchema.text_t.getSolrFieldName());+ doc.removeFields(CollectionSchema.synonyms_sxt.getSolrFieldName());++ // the input document stays untouched because it contains top-level cloned objects+ docs.add(sid);ResultURLs.stack(ASCII.String(urlEntry.url().hash()),urlEntry.url().getHost(),