From b4bc1e2875a1385a8445ec485c8b801e499da54c Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Sun, 29 Jan 2012 19:25:09 +0100 Subject: [PATCH 1/2] remote search does not do snippet generation --- htroot/yacy/search.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htroot/yacy/search.java b/htroot/yacy/search.java index bf89f94ae..354b0b403 100644 --- a/htroot/yacy/search.java +++ b/htroot/yacy/search.java @@ -42,7 +42,6 @@ import net.yacy.cora.document.RSSMessage; import net.yacy.cora.protocol.Domains; import net.yacy.cora.protocol.HeaderFramework; import net.yacy.cora.protocol.RequestHeader; -import net.yacy.cora.services.federated.yacy.CacheStrategy; import net.yacy.cora.sorting.ScoreMap; import net.yacy.cora.sorting.WeakPriorityBlockingQueue; import net.yacy.document.Autotagging.Metatag; @@ -238,7 +237,7 @@ public final class search { language, new HashSet(), "", // no navigation - CacheStrategy.CACHEONLY, + null, // no snippet computation count, 0, filter, @@ -301,7 +300,7 @@ public final class search { language, new HashSet(), "", // no navigation - CacheStrategy.CACHEONLY, + null, // no snippet computation count, 0, filter, From 355ecf330f40e81eb9b759ce2a06d8e2318dda4b Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Sun, 29 Jan 2012 20:35:48 +0100 Subject: [PATCH 2/2] reduced target file site to 64mb --- source/net/yacy/search/index/Segment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/search/index/Segment.java b/source/net/yacy/search/index/Segment.java index 20627524e..f45bde9f7 100644 --- a/source/net/yacy/search/index/Segment.java +++ b/source/net/yacy/search/index/Segment.java @@ -73,7 +73,7 @@ public class Segment { public static final long wCacheMaxAge = 1000 * 60 * 30; // milliseconds; 30 minutes public static final int wCacheMaxChunk = 800; // maximum number of references for each urlhash public static final int lowcachedivisor = 900; - public static final long targetFileSize = 256 * 1024 * 1024; // 256 MB + public static final long targetFileSize = 64 * 1024 * 1024; // 256 MB public static final int writeBufferSize = 4 * 1024 * 1024; // the reference factory