From 7e09bff4a1a117d2f2336e004ec67ffb325a7e9d Mon Sep 17 00:00:00 2001 From: reger Date: Sun, 8 Mar 2015 21:49:23 +0100 Subject: [PATCH] exclude default search fields from text copy to text_t for metadata index documents (reduce text redundance) --- source/net/yacy/search/schema/CollectionConfiguration.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/net/yacy/search/schema/CollectionConfiguration.java b/source/net/yacy/search/schema/CollectionConfiguration.java index 342a6e85d..822297134 100644 --- a/source/net/yacy/search/schema/CollectionConfiguration.java +++ b/source/net/yacy/search/schema/CollectionConfiguration.java @@ -333,12 +333,12 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri // construct the text from other metadata parts. // This is necessary here since that is used to search the link when no other data (parsed text body) is available StringBuilder sb = new StringBuilder(120); - accText(sb, md.dc_title()); + // accText(sb, md.dc_title()); // default search field via getQueryFields(), not needed for snippet (always displayed) accText(sb, md.dc_creator()); accText(sb, md.dc_publisher()); - accText(sb, md.snippet()); + // accText(sb, md.snippet()); // above added to description_txt, default search field via getQueryFields(), description_txt incl. in snippet calculation accText(sb, md.url().toTokens()); - accText(sb, keywords); + accText(sb, keywords); // default search field via getQueryFields(), keywords not incl. in snippet calculation add(doc, CollectionSchema.text_t, sb.toString()); }