Skip to content

Commit 78a4267

Browse files
committed
Switch TextSearch to array
Match native API behavior and accept a JSON array containing multiple search strings. Signed-off-by: Georg Pfuetzenreuter <[email protected]>
1 parent 8650f47 commit 78a4267

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)