|
|
|
@ -61,7 +61,6 @@ import net.yacy.peers.Seed;
|
|
|
|
|
import net.yacy.peers.dht.PeerSelection;
|
|
|
|
|
import net.yacy.repository.Blacklist.BlacklistType;
|
|
|
|
|
import net.yacy.search.Switchboard;
|
|
|
|
|
import net.yacy.search.SwitchboardConstants;
|
|
|
|
|
import net.yacy.search.index.Segment;
|
|
|
|
|
import net.yacy.search.query.QueryParams;
|
|
|
|
|
import net.yacy.search.query.RWIProcess;
|
|
|
|
@ -92,8 +91,7 @@ public class IndexControlRWIs_p {
|
|
|
|
|
prop.put("keyhash", "");
|
|
|
|
|
prop.put("result", "");
|
|
|
|
|
prop.put("cleanup", post == null || post.containsKey("maxReferencesLimit") ? 1 : 0);
|
|
|
|
|
prop.put("cleanup_solr", sb.index.getRemoteSolr() == null
|
|
|
|
|
|| !sb.getConfigBool(SwitchboardConstants.FEDERATED_SERVICE_SOLR_INDEXING_ENABLED, false) ? 0 : 1);
|
|
|
|
|
prop.put("cleanup_solr", sb.index.getRemoteSolr() == null ? 0 : 1);
|
|
|
|
|
|
|
|
|
|
// switch off all optional forms/lists
|
|
|
|
|
prop.put("searchresult", 0);
|
|
|
|
@ -158,8 +156,7 @@ public class IndexControlRWIs_p {
|
|
|
|
|
if ( post.get("deleteIndex", "").equals("on") ) {
|
|
|
|
|
segment.clear();
|
|
|
|
|
}
|
|
|
|
|
if ( post.get("deleteSolr", "").equals("on")
|
|
|
|
|
&& sb.getConfigBool(SwitchboardConstants.FEDERATED_SERVICE_SOLR_INDEXING_ENABLED, false) ) {
|
|
|
|
|
if ( post.get("deleteSolr", "").equals("on") && sb.index.getRemoteSolr() != null) {
|
|
|
|
|
try {
|
|
|
|
|
sb.index.getRemoteSolr().clear();
|
|
|
|
|
} catch ( final Exception e ) {
|
|
|
|
|