public void close(SolrCore core) { if (snapPuller != null) { snapPuller.destroy(); } } });
private void reloadCore() { new Thread() { public void run() { try { solrCore.getCoreDescriptor().getCoreContainer().reload(solrCore.getName()); } catch (Exception e) { LOG.error("Could not restart core ", e); } } }.start(); }
@Override public void init(NamedList args) { super.init(args); }
@Override public void init(NamedList args) { super.init(args); }
/** * {@inheritDoc} */ protected NamedList doAnalysis(SolrQueryRequest req) throws Exception { DocumentAnalysisRequest analysisRequest = resolveAnalysisRequest(req); return handleAnalysisRequest(analysisRequest, req.getSchema()); }
void add(SolrInputDocument doc, int line, int column, String val) { if (from.equals(val)) val=to; base.add(doc,line,column,val); } }
public void run() { doFetch(paramsCopy); } }.start();
void disablePoll() { if (isSlave) snapPuller.disablePoll(); }
void enablePoll() { if (isSlave) snapPuller.enablePoll(); }
public void run() { createSnapshot(indexCommit, replicationHandler); } }.start();
protected ContentStreamLoader newLoader(SolrQueryRequest req, UpdateRequestProcessor processor) { return new SingleThreadedCSVLoader(req, processor); }
boolean isPollingDisabled() { return snapPuller.isPollingDisabled(); }
protected ContentStreamLoader newLoader(SolrQueryRequest req, UpdateRequestProcessor processor) { return new XMLLoader(processor, inputFactory); }
void addDoc(int line, String[] vals) throws IOException { templateAdd.indexedId = null; SolrInputDocument doc = new SolrInputDocument(); doAdd(line, vals, doc, templateAdd); } }
@Override public void init(NamedList args) { super.init(args); }
@Override public void init(NamedList args) { super.init(args); }
void add(SolrInputDocument doc, int line, int column, String val) { base.add(doc, line, column, val.trim()); } }
@Override public void init(NamedList args) { super.init(args); }
@Override public void init(NamedList args) { super.init(args); }
@Override public void init(NamedList args) { super.init(args); this.args = SolrParams.toSolrParams(args); }