Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
RinkingSolr_p: include warning if boost field not in local index
reger0a9b0992f3f8
diff --git a/htroot/RankingSolr_p.html b/htroot/RankingSolr_p.htmlindex d19398a00..255f73049 100644--- a/htroot/RankingSolr_p.html+++ b/htroot/RankingSolr_p.html@@ -70,7 +70,8 @@onclick="if (document.getElementById('#[field]#').checked) document.getElementById('boost_#[field]#').value='1.0'; else document.getElementById('boost_#[field]#').value='';"/></dt><dd style="width:360px;margin:0;padding:0;height:1.8em;float:left;display:inline;" id="boost_dd_#[field]#">- <input name="boost_#[field]#" id="boost_#[field]#" type="text" align="right" size="10" value="#[boost]#" />+ <input #(notinindexwarning)#::class="TableCellActive"#(/notinindexwarning)# name="boost_#[field]#" id="boost_#[field]#" type="text" align="right" size="10" value="#[boost]#" />+ #(notinindexwarning)#::field not in local index (boost has no effect)#(/notinindexwarning)#</dd>#{/boosts}#<dt style="width:260px;margin:0;padding:0;height:1.8em;"></dt><dd style="width:360px;margin:0;padding:0;height:1.8em;float:left;display:inline;">diff --git a/htroot/RankingSolr_p.java b/htroot/RankingSolr_p.javaindex 9d6efabaf..fe2ac34ae 100644--- a/htroot/RankingSolr_p.java+++ b/htroot/RankingSolr_p.java@@ -114,9 +114,11 @@ public class RankingSolr_p {if (boost == null || boost.floatValue() <= 0.0f) {prop.put("boosts_" + i + "_checked", 0);prop.put("boosts_" + i + "_boost", "");+ prop.put("boosts_" + i + "_notinindexwarning", "0");} else {prop.put("boosts_" + i + "_checked", 1);prop.put("boosts_" + i + "_boost", boost.toString());+ prop.put("boosts_" + i + "_notinindexwarning", (sb.index.fulltext().getDefaultConfiguration().contains(field.name())? "0" : "1") );}i++;}