Package org.apache.solr.common.SolrException

Examples of org.apache.solr.common.SolrException.ErrorCode


        if (solrException.getCause() != null
            && ClassUtils.getShortName(solrException.getCause().getClass()).equalsIgnoreCase("ParseException")) {
          return new InvalidDataAccessApiUsageException((solrException.getCause()).getMessage(),
              solrException.getCause());
        } else {
          ErrorCode errorCode = SolrException.ErrorCode.getErrorCode(solrException.code());
          switch (errorCode) {
            case NOT_FOUND:
            case SERVICE_UNAVAILABLE:
            case SERVER_ERROR:
              return new DataAccessResourceFailureException(solrException.getMessage(), solrException);
View Full Code Here


                // wrong with ingest
                throw new RuntimeException(
                        NbBundle.getMessage(this.getClass(), "Ingester.UpRequestTask.run.exception.solrProb.msg"), ex);
            } catch (SolrException ex) {
                // Tika problems result in an unchecked SolrException
                ErrorCode ec = ErrorCode.getErrorCode(ex.code());

                // When Tika has problems with a document, it throws a server error
                // but it's okay to continue with other documents
                if (ec.equals(ErrorCode.SERVER_ERROR)) {
                    throw new RuntimeException(NbBundle.getMessage(this.getClass(),
                                                                   "Ingester.UpRequestTask.run.exception.probPostToSolr.msg",
                                                                   ec),
                                               ex);
                } else {
View Full Code Here

TOP

Related Classes of org.apache.solr.common.SolrException.ErrorCode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.