v2.6.0发布

This commit is contained in:
xiongxiaoyang
2020-06-15 17:47:12 +08:00
parent 7733cf1e3f
commit 0d96ff81b6
3 changed files with 6 additions and 3 deletions

View File

@ -134,8 +134,8 @@ public class SearchServiceImpl implements SearchService {
log.debug(search.toString());
SearchResult result;
result = jestClient.execute(search);
log.debug(result.getJsonString());
if (result.isSucceeded()) {
log.debug(result.getJsonString());
Map resultMap = new ObjectMapper().readValue(result.getJsonString(), Map.class);
if (resultMap.get("hits") != null) {
@ -196,4 +196,7 @@ public class SearchServiceImpl implements SearchService {
}
throw new BusinessException(ResponseStatus.ES_SEARCH_FAIL);
}
}