private boolean causedByIOException(SolrServerException e) { boolean foundIOException = false; Throwable cause = e.getCause(); while (cause != null) { if (cause instanceof IOException) { foundIOException = true; break; } cause = cause.getCause(); } return foundIOException; }
private boolean causedByIOException(SolrServerException e) { boolean foundIOException = false; Throwable cause = e.getCause(); while (cause != null) { if (cause instanceof IOException) { foundIOException = true; break; } cause = cause.getCause(); } return foundIOException; } }
private boolean causedByIOException(SolrServerException e) { boolean foundIOException = false; Throwable cause = e.getCause(); while (cause != null) { if (cause instanceof IOException) { foundIOException = true; break; } cause = cause.getCause(); } return foundIOException; }
private boolean causedByIOException(SolrServerException e) { boolean foundIOException = false; Throwable cause = e.getCause(); while (cause != null) { if (cause instanceof IOException) { foundIOException = true; break; } cause = cause.getCause(); } return foundIOException; } }
/** * This method performs the search using the class itself as the search query. It also clear it self after * completing the search. * * @return the query response as a result of the performed search. */ public QueryResponse query() { QueryResponse response = null; try { response = solrServer.query(this); } catch (SolrServerException e) { LOG.error("Server error: {}", e.getCause()); } // Clear query for next query clear(); return response; }
@SuppressWarnings("unchecked") protected List<Map<String, Object>> doFilterQuery(final String sortField, final SortDirection sortDirection) { this.setSortField(sortField, ORDER.valueOf(sortDirection.name().toLowerCase(CommonUtils.SWEDISH_LOCALE))); List<Map<String, Object>> hits = Collections.emptyList(); try { QueryResponse response = solrServer.query(this); SolrDocumentList sdl = response.getResults(); hits = (ArrayList<Map<String, Object>>) sdl.clone(); } catch (SolrServerException e) { e.printStackTrace(); LOGGER.error("Serverfel: {}", e.getCause()); } return hits; }
logger.error("[TRY " + numTries + "] There are server problems: " + e.getCause()); logger.error("Re-trying in " + SECONDS_TO_WAIT + " seconds..."); waitSecs();
logger.error("[TRY " + numTries + "] There are server problems: " + e.getCause()); logger.error("Re-trying in " + SECONDS_TO_WAIT + " seconds..."); waitSecs();
if (solrServerException.getCause() instanceof SolrException) { SolrException solrException = (SolrException) solrServerException.getCause(); } else if (solrServerException.getCause() instanceof ConnectException) { return new DataAccessResourceFailureException(solrServerException.getCause().getMessage(), solrServerException.getCause());
if ("unknown handler: /mlt".equals(e.getCause().getMessage())) { String message = String.format("SolrServer with id '%s' for topic engine '%s' lacks" + " configuration for the MoreLikeThisHandler", solrCoreId,
if ("unknown handler: /mlt".equals(e.getCause().getMessage())) { String message = String.format("SolrServer with id '%s' for topic engine '%s' lacks" + " configuration for the MoreLikeThisHandler", solrCoreId,