remove text_t in search result after snippet has been computed to save

space in search result cache
This commit is contained in:
Michael Peter Christen 2013-05-30 12:35:47 +02:00
parent a1644ca0fd
commit 2a8b99ea82

View File

@ -47,6 +47,7 @@ import net.yacy.kelondro.util.ByteArray;
import net.yacy.peers.Seed;
import net.yacy.peers.SeedDB;
import net.yacy.search.index.Segment;
import net.yacy.search.schema.CollectionSchema;
public class ResultEntry implements Comparable<ResultEntry>, Comparator<ResultEntry> {
@ -69,6 +70,7 @@ public class ResultEntry implements Comparable<ResultEntry>, Comparator<ResultEn
final List<MediaSnippet> mediaSnippets,
final long snippetComputationTime) {
this.urlentry = urlentry;
this.urlentry.getDocument().setField(CollectionSchema.text_t.getSolrFieldName(), ""); // clear the text field which eats up most of the space; it was used for snippet computation which is in a separate field here
this.indexSegment = indexSegment;
this.alternative_urlstring = null;
this.alternative_urlname = null;