搜索--文件展示顺序
1. 区分标准 2. 同一标准下文件展示顺序(发布稿 增补件 报批稿 征求意见稿 测试程序)
This commit is contained in:
+2
-2
@@ -434,16 +434,16 @@ public class JeroElasticsearchTemplate {
|
||||
//// json.put("sort", sort);
|
||||
// return json;
|
||||
// }
|
||||
public JSONObject buildQuery(List<String> _source, JSONObject query,Map<String, Object> highlight,String sort, int from, int size) {
|
||||
public JSONObject buildQuery(List<String> _source, JSONObject query,Map<String, Object> highlight,JSONArray sort, int from, int size) {
|
||||
JSONObject json = new JSONObject();
|
||||
if (_source != null) {
|
||||
json.put("_source", _source);
|
||||
}
|
||||
json.put("highlight", highlight);
|
||||
json.put("query", query);
|
||||
json.put("sort", sort);
|
||||
json.put("from", from);
|
||||
json.put("size", size);
|
||||
// json.put("sort", sort);
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user