Commit 0e3c2de0 authored by Quxl's avatar Quxl

x

parent 1edaab12
......@@ -7,7 +7,6 @@ import java.util.Map;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.common.SolrInputDocument;
import com.alibaba.fastjson.JSON;
import com.egolm.common.StringUtil;
import com.egolm.search.config.XRException;
import com.google.common.collect.Lists;
......@@ -57,9 +56,9 @@ public abstract class AbstractSolrApi implements SolrApi {
try {
solrClient.rollback();
} catch (Exception ex) {
logger.error("索引异常回滚失败", ex);
logger.error("删除索引异常回滚失败", ex);
}
throw new XRException("SolrDelete:" + JSON.toJSONString(documentIds), e);
throw new XRException("删除索引失败", e);
}
}
......@@ -73,7 +72,7 @@ public abstract class AbstractSolrApi implements SolrApi {
try {
solrClient.rollback();
} catch (Exception ex) {
logger.error("索引异常回滚失败", ex);
logger.error("删除全部索引异常回滚失败", ex);
}
throw new XRException("删除全部索引失败", e);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment