搜索--权重
This commit is contained in:
+8
@@ -390,6 +390,14 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
|
||||
Map<String, Object> queryMap = new HashMap<>();
|
||||
Map<String, Object> map2 = new HashMap<>();
|
||||
Map<String, Object> map3 = new HashMap<>();
|
||||
// if("title".equals(field) || "serial_number".equals(field)){
|
||||
// map3.put("query",selectValue);
|
||||
// map3.put("slop",1);
|
||||
// map3.put("boost",10f);
|
||||
// }else{
|
||||
// map3.put("query",selectValue);
|
||||
// map3.put("slop",1);
|
||||
// }
|
||||
map3.put("query",selectValue);
|
||||
map3.put("slop",1);
|
||||
map2.put(field, map3);
|
||||
|
||||
Reference in New Issue
Block a user