|
@@ -1980,12 +1980,34 @@ func SearchDataSourceIndex(indexName, keyword string, source, subSource int, cla
|
|
|
shouldMap["should"] = []interface{}{
|
|
|
map[string]interface{}{
|
|
|
"match": map[string]interface{}{
|
|
|
- "IndexCode": keyword,
|
|
|
+ "IndexCode": map[string]interface{}{
|
|
|
+ "query": keyword,
|
|
|
+ "operator": "and",
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
map[string]interface{}{
|
|
|
"match": map[string]interface{}{
|
|
|
- "IndexName": keyword,
|
|
|
+ "IndexName": map[string]interface{}{
|
|
|
+ "query": keyword,
|
|
|
+ "operator": "and",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ map[string]interface{}{
|
|
|
+ "match_phrase": map[string]interface{}{
|
|
|
+ "IndexCode": map[string]interface{}{
|
|
|
+ "query": keyword,
|
|
|
+ "boost": 5,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ map[string]interface{}{
|
|
|
+ "match_phrase": map[string]interface{}{
|
|
|
+ "IndexName": map[string]interface{}{
|
|
|
+ "query": keyword,
|
|
|
+ "boost": 5,
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
}
|