Skip to content

Commit

Permalink
Merge pull request #1 from tacerus/getparams
Browse files Browse the repository at this point in the history
Switch TextSearch to array
  • Loading branch information
fabiang authored Feb 21, 2025
2 parents 58cbd35 + 78a4267 commit 301125c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get_parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ type GetParameters struct {

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

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

0 comments on commit 301125c

Please sign in to comment.