From 449107225646cfc8b7fb42070445181f8343dcf6 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Fri, 7 Dec 2012 14:56:34 +0100 Subject: [PATCH] - clear the search cache when altering the solr boosts - better positions for submit buttons --- htroot/RankingSolr_p.html | 16 +++++++++++----- htroot/RankingSolr_p.java | 1 + 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/htroot/RankingSolr_p.html b/htroot/RankingSolr_p.html index 6e763ff4e..eb7eaf673 100644 --- a/htroot/RankingSolr_p.html +++ b/htroot/RankingSolr_p.html @@ -26,9 +26,12 @@ words are used for the signature. For minTokenLen = 2 the quantRate value should not be below 0.24; for minTokenLen = 3 the quantRate value must be not below 0.5. +
+
+ + +
- -
@@ -38,10 +41,13 @@
-
#{/boosts}# + #{/boosts}# +
+
+ + +
- -
#%env/templates/footer.template%# diff --git a/htroot/RankingSolr_p.java b/htroot/RankingSolr_p.java index 119cd1aee..71247ad39 100644 --- a/htroot/RankingSolr_p.java +++ b/htroot/RankingSolr_p.java @@ -37,6 +37,7 @@ public class RankingSolr_p { // clean up all search events SearchEventCache.cleanupEvents(true); + sb.index.fulltext().clearCache(); // every time the ranking is changed we need to remove old orderings if (post != null && post.containsKey("EnterDoublecheck")) { Boost.RANKING.setMinTokenLen(post.getInt("minTokenLen", 3));