From a1fffe8e86255c2ae5d967da31c16884e05c3564 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Sun, 21 Apr 2013 12:27:27 +0200 Subject: [PATCH] fixed default ranking values --- htroot/RankingSolr_p.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htroot/RankingSolr_p.java b/htroot/RankingSolr_p.java index a25b6e930..9d6efabaf 100644 --- a/htroot/RankingSolr_p.java +++ b/htroot/RankingSolr_p.java @@ -68,7 +68,7 @@ public class RankingSolr_p { } } if (post != null && post.containsKey("ResetBoosts")) { - String s = "text_t^2.0,url_paths_sxt^20.0,title^100.0,synonyms_sxt^1.0"; + String s = "url_paths_sxt^1000.0,synonyms_sxt^1.0,title^10000.0,text_t^2.0,h1_txt^1000.0,h2_txt^100.0,host_organization_s^100000.0"; sb.setConfig(SwitchboardConstants.SEARCH_RANKING_SOLR_COLLECTION_BOOSTFIELDS_ + profileNr, s); sb.index.fulltext().getDefaultConfiguration().getRanking(profileNr).updateBoosts(s); } @@ -96,7 +96,7 @@ public class RankingSolr_p { } } if (post != null && post.containsKey("ResetBF")) { - String bf = ""; //"div(add(1,references_i),pow(add(1,inboundlinkscount_i),1.6))"; + String bf = "product(recip(rord(last_modified),1,1000,1000),div(product(log(product(references_external_i,references_exthosts_i)),div(references_internal_i,host_extent_i)),add(clickdepth_i,1)))"; if (bf != null) { sb.setConfig(SwitchboardConstants.SEARCH_RANKING_SOLR_COLLECTION_BOOSTFUNCTION_ + profileNr, bf); sb.index.fulltext().getDefaultConfiguration().getRanking(profileNr).setBoostFunction(bf);