- 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. 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. 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> </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> </dl>
<input type="submit" name="EnterDoublecheck" value="Set" />
<input type="submit" name="ResetDoublecheck" value="Re-Set to default" />
</fieldset> </fieldset>
</form> </form>
<form class="dsearch" action="RankingSolr_p.html" method="post" enctype="multipart/form-data"> <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> <dt style="width:260px"><label for="#[field]#">#[field]#</label></dt>
<dd style="width:360px; float:left; display:inline;" id="boost_dd_#[field]#"> <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]#"> <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> </dl>
<input type="submit" name="EnterRanking" value="Set" />
<input type="submit" name="ResetRanking" value="Re-Set to default" />
</fieldset> </fieldset>
</form> </form>
#%env/templates/footer.template%# #%env/templates/footer.template%#

@ -37,6 +37,7 @@ public class RankingSolr_p {
// clean up all search events // clean up all search events
SearchEventCache.cleanupEvents(true); 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")) { if (post != null && post.containsKey("EnterDoublecheck")) {
Boost.RANKING.setMinTokenLen(post.getInt("minTokenLen", 3)); Boost.RANKING.setMinTokenLen(post.getInt("minTokenLen", 3));

Loading…
Cancel
Save