Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

- clear the search cache when altering the solr boosts - better positions for submit buttons

Michael Peter Christen449107225646
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.
</dd>
+ <dt style="width:260px"></dt>
+ <dd style="width:360px; float:left; display:inline;">
+ <input type="submit" name="EnterDoublecheck" value="Set" />
+ <input type="submit" name="ResetDoublecheck" value="Re-Set to default" />
+ </dd>
</dl>
- <input type="submit" name="EnterDoublecheck" value="Set" />
- <input type="submit" name="ResetDoublecheck" value="Re-Set to default" />
</fieldset>
</form>
<form class="dsearch" action="RankingSolr_p.html" method="post" enctype="multipart/form-data">
@@ -38,10 +41,13 @@
<dt style="width:260px"><label for="#[field]#">#[field]#</label></dt>
<dd style="width:360px; float:left; display:inline;" id="boost_dd_#[field]#">
<input name="boost_#[field]#" id="boost_#[field]#" type="text" align="right" size="10" value="#[boost]#">
- </dd>#{/boosts}#
+ </dd>#{/boosts}#
+ <dt style="width:260px"></dt>
+ <dd style="width:360px; float:left; display:inline;">
+ <input type="submit" name="EnterRanking" value="Set" />
+ <input type="submit" name="ResetRanking" value="Re-Set to default" />
+ </dd>
</dl>
- <input type="submit" name="EnterRanking" value="Set" />
- <input type="submit" name="ResetRanking" value="Re-Set to default" />
</fieldset>
</form>
#%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));