- clear the search cache when altering the solr boosts

- better positions for submit buttons
pull/1/head
Michael Peter Christen 12 years ago
parent 2b7d46bc1f
commit 4491072256

@ -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%#

@ -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));

Loading…
Cancel
Save