Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

remove check for local solr. This check was made during a time when Solr was optional and another alternative metadata store was available. Since that store is now removed, Solr is always available (internally or externally)

Michael Peter Christene09218129ce7
diff --git a/htroot/IndexReIndexMonitor_p.java b/htroot/IndexReIndexMonitor_p.java
index 00c56f35a..a397464eb 100644
--- a/htroot/IndexReIndexMonitor_p.java
+++ b/htroot/IndexReIndexMonitor_p.java
@@ -37,7 +37,7 @@ public class IndexReIndexMonitor_p {
prop.put("currentselectquery","");
BusyThread bt = sb.getThread("reindexSolr");
if (bt == null) {
- if (post != null && post.containsKey("reindexnow") && sb.index.fulltext().connectedLocalSolr()) {
+ if (post != null && post.containsKey("reindexnow")) {
migration.reindexToschema(sb);
prop.put("querysize", "0");
prop.put("infomessage","reindex job started");
@@ -75,13 +75,8 @@ public class IndexReIndexMonitor_p {
}
} else {
prop.put("reindexjobrunning", 0);
- if (sb.index.fulltext().connectedLocalSolr()) {
- prop.put("querysize", "is empty");
- prop.put("infomessage", "no reindex job running");
- } else {
- prop.put("querysize", "");
- prop.putHTML("infomessage", "! reindex works only with embedded Solr index !");
- }
+ prop.put("querysize", "is empty");
+ prop.put("infomessage", "no reindex job running");
}
// return rewrite properties
return prop;
diff --git a/source/net/yacy/peers/Protocol.java b/source/net/yacy/peers/Protocol.java
index 7790ad0bc..2c4054621 100644
--- a/source/net/yacy/peers/Protocol.java
+++ b/source/net/yacy/peers/Protocol.java
@@ -290,9 +290,8 @@ public final class Protocol {
}
mySeed.setFlagRootNode(
(mytype.equals(Seed.PEERTYPE_SENIOR) || mytype.equals(Seed.PEERTYPE_PRINCIPAL)) &&
- responseTime < 1000 && Domains.isThisHostIP(mySeed.getIP()) &&
- Switchboard.getSwitchboard().index.fulltext().connectedLocalSolr()
- ); // RootNode may receive direct Solr queries, set flag only if available
+ responseTime < 1000 && Domains.isThisHostIP(mySeed.getIP())
+ );
// change our seed-type
final Accessible accessible = new Accessible();