mirror of
https://github.com/yacy/yacy_search_server.git
synced 2025-07-23 09:24:39 -04:00
- clear the search cache when altering the solr boosts
- better positions for submit buttons
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user