|
@@ -268,7 +268,7 @@ func getDataExportSql(scd *SieveCondition) string {
|
|
|
for _, vk := range strings.Split(v.Keyword, "+") {
|
|
|
//单个字 搜索范围 有全文或者附件 无标题 例如:学 虚拟机 detail 搜索的时候加上标题
|
|
|
if scd.Comeinfrom == "supersearchPage" && DetailFileORTitle(scd.SelectType) && len([]rune(elastic.ReplaceYH(vk))) == 1 {
|
|
|
- queryItem = strings.ReplaceAll(scd.SelectType+"title", ",", "\",\"")
|
|
|
+ queryItem = strings.ReplaceAll(scd.SelectType+",title", ",", "\",\"")
|
|
|
shouldsKey := fmt.Sprintf(multi_match, "\""+vk+"\"", "\""+queryItem+"\"")
|
|
|
shoulds = append(shoulds, shouldsKey)
|
|
|
} else {
|
|
@@ -279,7 +279,7 @@ func getDataExportSql(scd *SieveCondition) string {
|
|
|
for _, vk := range strings.Split(v.Keyword, " ") {
|
|
|
//单个字 搜索范围 有全文或者附件 无标题 例如:学 虚拟机 detail 搜索的时候加上标题
|
|
|
if scd.Comeinfrom == "supersearchPage" && DetailFileORTitle(scd.SelectType) && len([]rune(elastic.ReplaceYH(vk))) == 1 {
|
|
|
- queryItem = strings.ReplaceAll(scd.SelectType+"title", ",", "\",\"")
|
|
|
+ queryItem = strings.ReplaceAll(scd.SelectType+",title", ",", "\",\"")
|
|
|
shouldsKey := fmt.Sprintf(multi_match, "\""+vk+"\"", "\""+queryItem+"\"")
|
|
|
shoulds = append(shoulds, shouldsKey)
|
|
|
} else {
|
|
@@ -289,7 +289,7 @@ func getDataExportSql(scd *SieveCondition) string {
|
|
|
} else {
|
|
|
//单个字 搜索范围 有全文或者附件 无标题 例如:学 虚拟机 detail 搜索的时候加上标题
|
|
|
if scd.Comeinfrom == "supersearchPage" && DetailFileORTitle(scd.SelectType) && len([]rune(elastic.ReplaceYH(v.Keyword))) == 1 {
|
|
|
- queryItem = strings.ReplaceAll(scd.SelectType+"title", ",", "\",\"")
|
|
|
+ queryItem = strings.ReplaceAll(scd.SelectType+",title", ",", "\",\"")
|
|
|
shouldsKey := fmt.Sprintf(multi_match, "\""+v.Keyword+"\"", "\""+queryItem+"\"")
|
|
|
shoulds = append(shoulds, shouldsKey)
|
|
|
} else {
|
|
@@ -307,7 +307,7 @@ func getDataExportSql(scd *SieveCondition) string {
|
|
|
for _, vv := range v.Exclude {
|
|
|
//单个字 搜索范围 有全文或者附件 无标题 例如:学 虚拟机 detail 搜索的时候加上标题
|
|
|
if scd.Comeinfrom == "supersearchPage" && DetailFileORTitle(scd.SelectType) && len([]rune(elastic.ReplaceYH(vv))) == 1 {
|
|
|
- queryItem = strings.ReplaceAll(scd.SelectType+"title", ",", "\",\"")
|
|
|
+ queryItem = strings.ReplaceAll(scd.SelectType+",title", ",", "\",\"")
|
|
|
shouldsKey := fmt.Sprintf(multi_match, "\""+vv+"\"", "\""+queryItem+"\"")
|
|
|
shoulds = append(shoulds, shouldsKey)
|
|
|
} else {
|