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: 0 additions & 2 deletions learn/resources/telemetry.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,3 @@ This list is liable to change with every new version of Meilisearch. It's not be
| `export.avg_index_patterns` | Average number of index patterns set per export | `3.2`
| `export.avg_patterns_with_filter` | Average number of index patterns with filters per export | `1.7`
| `export.avg_payload_size` | Average payload size per export | `512`
| `webhooks_created` | Number of webhooks created in an instance | `2`
| `webhooks.updated` | Number of times all webhooks in an instance have been updated | `5`
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,19 @@ curl \
}
}'
```

```go Go
client.Index("INDEX_NAME").Search("", &meilisearch.SearchRequest{
Hybrid: &meilisearch.SearchRequestHybrid{
Embedder: "EMBEDDER_NAME",
},
Media: map[string]any{
"FIELD_A": "VALUE_A",
"FIELD_B": map[string]any{
"FIELD_C": "VALUE_B",
"FIELD_D": "VALUE_C",
},
},
});
```
</CodeGroup>
4 changes: 4 additions & 0 deletions snippets/samples/code_samples_webhooks_delete_1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ curl \
```javascript JS
client.deleteWebhook(WEBHOOK_UUID)
```

```go Go
client.DeleteWebhook("WEBHOOK_UUID");
```
</CodeGroup>
4 changes: 4 additions & 0 deletions snippets/samples/code_samples_webhooks_get_1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ curl \
```javascript JS
client.getWebhooks()
```

```go Go
client.ListWebhooks();
```
</CodeGroup>
4 changes: 4 additions & 0 deletions snippets/samples/code_samples_webhooks_get_single_1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ curl \
```javascript JS
client.getWebhook(WEBHOOK_UUID)
```

```go Go
client.GetWebhook("WEBHOOK_UUID");
```
</CodeGroup>
8 changes: 8 additions & 0 deletions snippets/samples/code_samples_webhooks_patch_1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,12 @@ client.updateWebhook(WEBHOOK_UUID, {
}
})
```

```go Go
client.UpdateWebhook("WEBHOOK_UUID", &meilisearch.UpdateWebhookRequest{
Header: map[string]string{
"referer": ""
},
});
```
</CodeGroup>
10 changes: 10 additions & 0 deletions snippets/samples/code_samples_webhooks_post_1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,14 @@ client.createWebhook({
}
})
```

```go Go
client.AddWebhook(&meilisearch.AddWebhookRequest{
URL: "WEBHOOK_TARGET_URL",
Headers: map[string]string{
"authorization": "SECURITY_KEY",
"referer": "https://example.com"
},
});
```
</CodeGroup>