|
|
@@ -145,10 +145,10 @@ public class AiSearchController {
|
|
|
HttpEntity<Map<String, Object>> request = new HttpEntity<>(requestBody, null);
|
|
|
try {
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS").withZone(ZoneId.systemDefault());
|
|
|
- log.info("调用AI模糊搜索接口 请求参数------{} 时间: {}", requestBody, formatter.format(Instant.now()));
|
|
|
+ log.info("调用AI模糊搜索接口 请求参数------{} AI开始时间: {}", requestBody, formatter.format(Instant.now()));
|
|
|
ResponseEntity<String> stringResponseEntity = restTemplate.postForEntity(aiSearchFuzzyUrl, request, String.class);
|
|
|
String body = stringResponseEntity.getBody();
|
|
|
- log.info("调用AI列表接口 处理前v 接口返回------{} 时间: {}", body, formatter.format(Instant.now()));
|
|
|
+ log.info("调用AI列表接口 处理前v 接口返回------{} AI结束时间: {}", body, formatter.format(Instant.now()));
|
|
|
JSONObject jsonObject = JSONObject.parseObject(body);
|
|
|
JSONObject jsonObject1 = new JSONObject();
|
|
|
// 模糊搜索:从related_results和matched_results字段获取数据
|
|
|
@@ -165,7 +165,7 @@ public class AiSearchController {
|
|
|
|
|
|
jsonObject1.put("total", jsonObject.get("total"));
|
|
|
jsonObject1.put("size", map.get("pageSize"));
|
|
|
- log.info("调用AI模糊搜索接口 接口返回------{}", body);
|
|
|
+ log.info("调用AI模糊搜索接口 接口返回------{} 最终时间: {}", body, formatter.format(Instant.now()));
|
|
|
return R.data(jsonObject1);
|
|
|
} catch (Exception e) {
|
|
|
log.error("调用AI模糊搜索接口 接口异常------", e);
|