Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/resources/query_suggestions.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Optional:
- `analytics_tags` (Set of String) A list of analytics tags to filter the popular searches per tag.
- `external` (Set of String) A list of external indices to use to generate custom Query Suggestions.
- `facets` (Block List) A list of facets to define as categories for the query suggestions. (see [below for nested schema](#nestedblock--source_indices--facets))
- `generate` (List of List of String) List of facet attributes used to generate Query Suggestions. The resulting suggestions are every combination of the facets in the nested list
- `generate` (List of List of String) List of facet attributes used to generate Query Suggestions. The resulting suggestions are every combination of the facets in the nested list
(e.g., (facetA and facetB) and facetC).
```
[
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ resource "algolia_rule" "example" {

### Required

- `consequence` (Block List, Min: 1, Max: 1) Consequence of the Rule.
- `consequence` (Block List, Min: 1, Max: 1) Consequence of the Rule.
At least one of the following object must be used:
- params
- promote
Expand Down
4 changes: 4 additions & 0 deletions internal/provider/resource_api_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ func resourceAPIKey() *schema.Resource {
Description: "A configuration for an API key",
// https://www.algolia.com/doc/api-reference/api-methods/add-api-key/
Schema: map[string]*schema.Schema{
"id": {
Type: schema.TypeString,
Computed: true,
},
"key": {
Type: schema.TypeString,
Computed: true,
Expand Down
4 changes: 4 additions & 0 deletions internal/provider/resource_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ func resourceIndex() *schema.Resource {
},
// https://www.algolia.com/doc/api-reference/settings-api-parameters/
Schema: map[string]*schema.Schema{
"id": {
Type: schema.TypeString,
Computed: true,
},
"name": {
Type: schema.TypeString,
Required: true,
Expand Down
6 changes: 5 additions & 1 deletion internal/provider/resource_query_suggestions.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func resourceQuerySuggestions() *schema.Resource {
Description: "A configuration that lies behind your Query Suggestions index.",
// https://www.algolia.com/doc/rest-api/query-suggestions/#create-a-configuration
Schema: map[string]*schema.Schema{
"id": {
Type: schema.TypeString,
Computed: true,
},
"index_name": {
Type: schema.TypeString,
Required: true,
Expand Down Expand Up @@ -103,7 +107,7 @@ func resourceQuerySuggestions() *schema.Resource {
Type: schema.TypeList,
Elem: &schema.Schema{Type: schema.TypeString},
},
Description: `List of facet attributes used to generate Query Suggestions. The resulting suggestions are every combination of the facets in the nested list
Description: `List of facet attributes used to generate Query Suggestions. The resulting suggestions are every combination of the facets in the nested list
(e.g., (facetA and facetB) and facetC).
` + "```" + `
[
Expand Down
6 changes: 5 additions & 1 deletion internal/provider/resource_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ func resourceRule() *schema.Resource {
Description: "A configuration for a Rule. To get more information about rules, see the [Official Documentation](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/).",
// https://www.algolia.com/doc/api-reference/api-methods/save-rule/#parameters
Schema: map[string]*schema.Schema{
"id": {
Type: schema.TypeString,
Computed: true,
},
"index_name": {
Type: schema.TypeString,
Required: true,
Expand Down Expand Up @@ -96,7 +100,7 @@ This parameter goes hand in hand with the ` + "`pattern` " + ` parameter. If the
Type: schema.TypeList,
Required: true,
MaxItems: 1,
Description: `Consequence of the Rule.
Description: `Consequence of the Rule.
At least one of the following object must be used:
- params
- promote
Expand Down
4 changes: 4 additions & 0 deletions internal/provider/resource_synonyms.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ func resourceSynonyms() *schema.Resource {
`,
// https://www.algolia.com/doc/api-reference/api-methods/batch-synonyms/
Schema: map[string]*schema.Schema{
"id": {
Type: schema.TypeString,
Computed: true,
},
"index_name": {
Type: schema.TypeString,
Required: true,
Expand Down
4 changes: 4 additions & 0 deletions internal/provider/resource_virtual_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ func resourceVirtualIndex() *schema.Resource {
},
// https://www.algolia.com/doc/api-reference/settings-api-parameters/
Schema: map[string]*schema.Schema{
"id": {
Type: schema.TypeString,
Computed: true,
},
"name": {
Type: schema.TypeString,
Required: true,
Expand Down
Loading