diff --git a/api/graphql.go b/api/graphql.go index c40742d..bbd71bd 100644 --- a/api/graphql.go +++ b/api/graphql.go @@ -462,13 +462,11 @@ func NewSchema(config Config) (graphql.Schema, error) { if args.Text != "" { resp, err := models.ZincSearch(map[string]interface{}{ "query": map[string]interface{}{ - //"term": map[string]interface{}{ - // "text": args.Text, - //}, "bool": map[string]interface{}{ "must": []map[string]interface{}{ { - "query_string": map[string]string{"query": "text:" + args.Text}, + //"query_string": map[string]string{"query": "text:" + args.Text}, + "match_phrase": map[string]string{"text": args.Text}, }, }, }, @@ -476,8 +474,8 @@ func NewSchema(config Config) (graphql.Schema, error) { "sort": []string{ "_score", }, - "from": 0, - "size": 200, + //"from": 0, + "size": 1000, }) if err != nil {