Skip to content

Commit 301125c

Browse files
authored
Merge pull request #1 from tacerus/getparams
Switch TextSearch to array
2 parents 58cbd35 + 78a4267 commit 301125c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

get_parameters.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ type GetParameters struct {
5656

5757
// TextSearch causes an API query to return only results that match the
5858
// given wilcard search where the map keys are the desired field names and
59-
// the map values are the search expression.
59+
// the map values are an array of search expressions.
6060
//
6161
// Only string and text fields are supported.
62-
TextSearch map[string]string `json:"search,omitempty"`
62+
TextSearch map[string][]string `json:"search,omitempty"`
6363

6464
// TextSearchByStart causes an API query to return only results that match
6565
// the search parameters given in TextSearch where each given field starts

0 commit comments

Comments
 (0)