Skip to content

Commit

Permalink
feat: Expose SortFacetValuesBy setting
Browse files Browse the repository at this point in the history
  • Loading branch information
aseure committed Nov 3, 2017
1 parent 4f5d011 commit e9d1386
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion algoliasearch/check_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ Outer:
"snippetEllipsisText",
"filters",
"aroundLatLng",
"exactOnSingleWordQuery":
"exactOnSingleWordQuery",
"sortFacetValuesBy":
if _, ok := v.(string); !ok {
return invalidType(k, "string")
}
Expand Down
3 changes: 2 additions & 1 deletion algoliasearch/check_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ func checkSettings(settings Map) error {
"snippetEllipsisText",
"attributeForDistinct",
"removeWordsIfNoResults",
"exactOnSingleWordQuery":
"exactOnSingleWordQuery",
"sortFacetValuesBy":
if _, ok := v.(string); !ok {
return invalidType(k, "string")
}
Expand Down
1 change: 1 addition & 0 deletions algoliasearch/types_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type Settings struct {
ReplaceSynonymsInHighlight bool `json:"replaceSynonymsInHighlight"`
ResponseFields []string `json:"responseFields"`
SnippetEllipsisText string `json:"snippetEllipsisText"`
SortFacetValuesBy string `json:"sortFacetValuesBy"`
TypoTolerance string `json:"typoTolerance"`
}

Expand Down

0 comments on commit e9d1386

Please sign in to comment.