|
@@ -272,7 +272,7 @@ func GetDataExportSearchCountUseId(_id string) (count int) {
|
|
|
count = int(elastic.Count(INDEX, TYPE, qstr))
|
|
|
//超级搜索一致的检索(防止数据导出和超级搜索数据量不一致)
|
|
|
//if scd.Comeinfrom == "supersearchPage" || scd.Comeinfrom == "exportPage" {
|
|
|
- if len(scd.Keyword) != 0 && scd.SelectType == "title" {
|
|
|
+ if len(scd.Keyword) != 0 {
|
|
|
searchTextSize := 0
|
|
|
if len(scd.Keyword) > 0 {
|
|
|
searchTextSize = len([]rune(scd.Keyword[0].Keyword))
|
|
@@ -357,7 +357,7 @@ func GetDataExportSearchResultUseId(_id, dataType string, count int) *[]map[stri
|
|
|
if len(scd.Keyword) > 0 {
|
|
|
searchTextSize = len([]rune(scd.Keyword[0].Keyword))
|
|
|
}
|
|
|
- if searchTextSize > 3 && count < 50 && scd.SelectType == "title" {
|
|
|
+ if searchTextSize > 3 && count < 50 {
|
|
|
var res *[]map[string]interface{}
|
|
|
if count > 0 {
|
|
|
res = doSearch(qstr, 0, count, "")
|
|
@@ -409,7 +409,7 @@ func GetDataExportSearchResultUseId(_id, dataType string, count int) *[]map[stri
|
|
|
if len(scd.Keyword) > 0 {
|
|
|
searchTextSize = len([]rune(scd.Keyword[0].Keyword))
|
|
|
}
|
|
|
- if searchTextSize > 3 && num < 50 && scd.SelectType == "title" {
|
|
|
+ if searchTextSize > 3 && num < 50 {
|
|
|
secondKWS := jy.HttpEs(scd.Keyword[0].Keyword, "ik_smart", config.Sysconfig["elasticsearch"].(string))
|
|
|
scd.Keyword[0].Keyword = secondKWS
|
|
|
qstr = getDataExportSql(scd)
|