Skip to content

Commit

Permalink
Add missing removeWordsIfNoResults to settings type
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertBrand authored and aseure committed Nov 29, 2017
1 parent 37405d6 commit 4628a86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions algoliasearch/types_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ type Settings struct {
SnippetEllipsisText string `json:"snippetEllipsisText"`
SortFacetValuesBy string `json:"sortFacetValuesBy"`
TypoTolerance string `json:"typoTolerance"`
RemoveWordsIfNoResults string `json:"removeWordsIfNoResults"`
}

// clean sets the nil `interface{}` fields of any `Settings struct` generated
Expand Down Expand Up @@ -121,6 +122,7 @@ func (s *Settings) ToMap() Map {
"snippetEllipsisText": s.SnippetEllipsisText,
"typoTolerance": s.TypoTolerance,
"responseFields": s.ResponseFields,
"removeWordsIfNoResults": s.RemoveWordsIfNoResults,
}

// Remove empty string slices to avoid creating null-valued fields in the
Expand Down

0 comments on commit 4628a86

Please sign in to comment.