搜索中心-高亮时排除id
This commit is contained in:
+7
-2
@@ -674,7 +674,10 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
|
|||||||
|
|
||||||
//高亮
|
//高亮
|
||||||
if(!"flag".equals(field)){
|
if(!"flag".equals(field)){
|
||||||
highlight(mapHighlight, field);
|
//跳转时要用id,所以高亮时要将id排除
|
||||||
|
if(!"id".equals(field)){
|
||||||
|
highlight(mapHighlight, field);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// query_string查询
|
// query_string查询
|
||||||
Map<String, Object> map25 = new HashMap<>();
|
Map<String, Object> map25 = new HashMap<>();
|
||||||
@@ -702,7 +705,9 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
|
|||||||
|
|
||||||
//高亮
|
//高亮
|
||||||
if(!"flag".equals(field)){
|
if(!"flag".equals(field)){
|
||||||
highlight(mapHighlight, field);
|
if(!"id".equals(field)){
|
||||||
|
highlight(mapHighlight, field);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// query_string查询
|
// query_string查询
|
||||||
Map<String, Object> map25 = new HashMap<>();
|
Map<String, Object> map25 = new HashMap<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user