|
@@ -369,12 +369,11 @@ func getDataExportSql(scd *SieveCondition) string {
|
|
|
appendedShoulds = append(appendedShoulds, fmt.Sprintf(multi_match_new, "\""+vk+"\""))
|
|
|
}
|
|
|
}
|
|
|
- } else if strings.Contains(vv, " ") {
|
|
|
+ } else {
|
|
|
for _, vk := range strings.Split(vv, " ") {
|
|
|
if len(vk) == 0 {
|
|
|
continue
|
|
|
}
|
|
|
-
|
|
|
//单个字 搜索范围 有全文或者附件 无标题 例如:学 虚拟机 detail 搜索的时候加上标题
|
|
|
if scd.Comeinfrom == "supersearchPage" && DetailFileORTitle(selectType) && len([]rune(elastic.ReplaceYH(vk))) == 1 {
|
|
|
queryItem = strings.ReplaceAll(selectType+",title", ",", "\",\"")
|
|
@@ -384,9 +383,6 @@ func getDataExportSql(scd *SieveCondition) string {
|
|
|
appendedShoulds = append(appendedShoulds, fmt.Sprintf(multi_match_new, "\""+vk+"\""))
|
|
|
}
|
|
|
}
|
|
|
- } else {
|
|
|
- appendedShoulds = append(appendedShoulds, fmt.Sprintf(multi_match_new, "\""+vv+"\""))
|
|
|
-
|
|
|
}
|
|
|
// 单个关键词分词后都包含
|
|
|
shoulds = append(shoulds, fmt.Sprintf(query_bool_must_and, strings.Join(appendedShoulds, ","), ""))
|