Skip to content

Commit

Permalink
Merge pull request #31 from k-yomo/fix-query-suggestions-defult-values
Browse files Browse the repository at this point in the history
Remove wrong default values for min_hits and min_letters
  • Loading branch information
k-yomo authored Jul 20, 2021
2 parents 3d241b0 + 0676595 commit 578e53d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/provider/resource_query_suggestions.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ func resourceQuerySuggestions() *schema.Resource {
},
"min_hits": {
Type: schema.TypeInt,
Computed: true,
Optional: true,
Default: 5, // This is the API's behaviour which is different from the doc https://www.algolia.com/doc/rest-api/query-suggestions/#method-param-minhits.
Description: "Minimum number of hits (e.g., matching records in the source index) to generate a suggestions.",
},
"min_letters": {
Type: schema.TypeInt,
Computed: true,
Optional: true,
Default: 4, // This is the API's behaviour which is different from the doc https://www.algolia.com/doc/rest-api/query-suggestions/#method-param-minletters
Description: "Minimum number of required letters for a suggestion to remain.",
},
"generate": {
Expand Down

0 comments on commit 578e53d

Please sign in to comment.