Commit b7916465 by 姚冰

[chg] 查询返回结果数量默认为1,去除投票

1 parent 524400d6
......@@ -377,7 +377,7 @@ public class PersonService {
continue;
}
SearchRequest searchRequest = getSearchRequest(rid, poolId, size == null ? Constant.FACE_MATCH_RESULT_SIZE : size, feature, person, 0, agg);
SearchRequest searchRequest = getSearchRequest(rid, poolId, 1, feature, person, 0, agg);
matchResult.addAll(match0(searchRequest, agg));
}
} else {
......@@ -401,7 +401,7 @@ public class PersonService {
feature = Arrays.copyOfRange(feature, 3, Constant.BODY_FEATURE_DIMS_2048 + 3);
}
SearchRequest searchRequest = getSearchRequest(rid, poolId, size == null ? Constant.BODY_MATCH_RESULT_SIZE : size, feature, person, 1, agg);
SearchRequest searchRequest = getSearchRequest(rid, poolId, 1, feature, person, 1, agg);
matchResult.addAll(match0(searchRequest, agg));
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!