Debian Codegraph @

opensearch/search.go

raw symbols SCIP
1 package opensearch
2
3 import "net/http"
4
5 type SearchArgs struct {
6 //搜索主体
7 Query string `ArgName:"query"`
8 //要查询的应用名
9 Index_name string `ArgName:"index_name"`
10 //[可以通过此参数获取本次查询需要的字段内容]
11 Fetch_fields string `ArgName:"fetch_fields"`
12 //[指定要使用的查询分析规则]
13 Qp string `ArgName:"qp"`
14 //[关闭已生效的查询分析功能]
15 Disable string `ArgName:"disable"`
16 //[设置粗排表达式名字]
17 First_formula_name string `ArgName:"first_formula_name"`
18 //[设置精排表达式名字]
19 Formula_name string `ArgName:"formula_name"`
20 //[动态摘要的配置]
21 Summary string `ArgName:"summary"`
22 }
23
24 //搜索
25 //系统提供了丰富的搜索语法以满足用户各种场景下的搜索需求
26 func (this *Client) Search(args SearchArgs, resp interface{}) error {
27 return this.InvokeByAnyMethod(http.MethodGet, "", "/search", args, resp)
28 }