mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
remove text_t in search result after snippet has been computed to save
space in search result cache
This commit is contained in:
parent
a1644ca0fd
commit
2a8b99ea82
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user