Commit 131feaba by liuyu

2024/06/21 searchAfter改用id排序

parent 9eebd6e3
......@@ -64,7 +64,7 @@ public class EsDaoImpl implements EsDao {
if (size >= 0) {
builder.size(size);
}
builder.sort("_id", SortOrder.ASC);
builder.sort("id", SortOrder.ASC);
String scrollId = "";
while (null != scrollId) {
if (objects.length > 0) {
......
......@@ -94,7 +94,7 @@ public class TaskServiceAiMark implements TaskService {
long now = System.currentTimeMillis();
String s = OkHttpUtil.httpPut(aiParam.getAiMark().getInterfaceRelation().getUrl(), param.toJSONString(), aiParam.getAiMark().getInterfaceRelation().getHeader().getInnerMap());
if (Objects.isNull(s)) {
log.error("ai标注失败,数据id:{},错误信息:ai接口返回为null" , aiParam.getJson().getString("_id"));
log.error("ai标注失败,数据id:{},错误信息:ai接口返回为null" , aiParam.getJson().getString("id"));
return null;
}
long endTime = System.currentTimeMillis() - now;
......
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