fixes using the embedded connector

pull/1/head
Michael Peter Christen 12 years ago
parent c6a6f159e8
commit 1fd006cc56

@ -53,7 +53,7 @@ public class IndexReIndexMonitor_p {
prop.put("showstartbutton", 0);
}
} else {
if (post != null && post.containsKey("reindexnow")) {
if (post != null && post.containsKey("reindexnow") && sb.index.fulltext().connectedLocalSolr()) {
migration.reindexToschema(sb);
prop.put("showstartbutton", 0);
prop.put("querysize", "0");

@ -60,8 +60,7 @@ import org.apache.solr.common.SolrInputDocument;
*/
public ReindexSolrBusyThread(String query) {
super(100,1000,0,500);
this.esc = Switchboard.getSwitchboard().index.fulltext().getDefaultEmbeddedConnector();
if (this.esc == null) this.esc = Switchboard.getSwitchboard().index.fulltext().getDefaultRemoteSolrConnector();
this.esc = Switchboard.getSwitchboard().index.fulltext().getDefaultConnector();
this.colcfg = Switchboard.getSwitchboard().index.fulltext().getDefaultConfiguration();
if (Switchboard.getSwitchboard().getThread("reindexSolr") != null) {

Loading…
Cancel
Save