@Override public void connect() throws IOException { if (httpClient == null && executorService == null) { solrServer = new ConcurrentUpdateSolrServer(solrServerURL, queueSize, threadCount); } else if (executorService == null) { solrServer = new ConcurrentUpdateSolrServer(solrServerURL, httpClient, queueSize, threadCount); } else { solrServer = new ConcurrentUpdateSolrServer(solrServerURL, httpClient, queueSize, threadCount, executorService, streamDeletes); } }
@Override public void connect() throws IOException { if (httpClient == null && executorService == null) { solrServer = new ConcurrentUpdateSolrServer(solrServerURL, queueSize, threadCount); } else if (executorService == null) { solrServer = new ConcurrentUpdateSolrServer(solrServerURL, httpClient, queueSize, threadCount); } else { solrServer = new ConcurrentUpdateSolrServer(solrServerURL, httpClient, queueSize, threadCount, executorService, streamDeletes); } }
public ConcurrentUpdateSolrServer getStreamingSolrServer(String coreName) { try { return new ConcurrentUpdateSolrServer(getSolrUrl(coreName).toString(), 4, 4); } catch (MalformedURLException e) { throw new IllegalStateException("URL should be well formed", e); } } }
@Nullable @Override public SolrClient getIndexingSolrServer() throws Exception { if (indexingSolrServer == null) { indexingSolrServer = new ConcurrentUpdateSolrServer(getUrl(), 1000, 4); } return indexingSolrServer; }
@Nullable @Override public SolrClient getIndexingSolrServer() throws Exception { if (indexingSolrServer == null) { indexingSolrServer = new ConcurrentUpdateSolrServer(getUrl(), 1000, 4); } return indexingSolrServer; }
/** * Instantiates a new embedded index. * * @param solrHomePath * the solr home path * @param coreName * the core name * */ public SolrRemoteIndex(final String solrUrl, final String replicaMasterUrl, final String coreName) { baseUrl = solrUrl + (solrUrl.endsWith("/") ? StringUtils.EMPTY : "/") + coreName; if(StringUtils.isNotEmpty(replicaMasterUrl)){ this.replicaMasterUrl = replicaMasterUrl + (replicaMasterUrl.endsWith("/") ? StringUtils.EMPTY : "/") + coreName; } else { this.replicaMasterUrl = baseUrl; } updateServer = new ConcurrentUpdateSolrServer(this.replicaMasterUrl, QUEUE_SIZE, CONCURRENT_THREADS); searchServer = new HttpSolrServer(this.baseUrl); }
SolrServer solr = new ConcurrentUpdateSolrServer(serverUrl, batchSize, 1);
public void runExample(ExampleDriver driver) throws Exception { String serverUrl = driver.getCommandLine().getOptionValue("solr", ExampleDriver.DEFAULT_SOLR_URL); SolrServer solr = new ConcurrentUpdateSolrServer(serverUrl, 1000, 2);
queryEngine.setMaxRetries(1); updateEngine = new ConcurrentUpdateSolrServer(solrServerUrlString, 100, 1); updateEngine.setConnectionTimeout(10000); updateEngine.setPollQueueTime(25);