使用相对于项目地址的配置文件路径以便于单元测试
This commit is contained in:
@@ -29,6 +29,10 @@ func elasticsearch_init() (es *elasticsearch.Client) {
|
||||
return es
|
||||
}
|
||||
|
||||
type SearchData struct {
|
||||
Total int64 `json:"total"`
|
||||
}
|
||||
|
||||
func ElasticsearchSearch(text string) map[string]interface{} {
|
||||
var (
|
||||
r map[string]interface{}
|
||||
|
Reference in New Issue
Block a user