Skip to content

Commit 5671181

Browse files
committed
[AUTOMATION POST DEPLOYMENT] Update code samples
1 parent 54e5b22 commit 5671181

6 files changed

Lines changed: 25 additions & 15 deletions

snippets/generated-code-samples/code_samples_get_foreign_keys_setting_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
```bash cURL
44
curl \
5-
-X GET 'MEILISEARCH_URL/indexes/movies/settings/foreign-keys'
5+
-X GET 'MEILISEARCH_URL/indexes/books/settings/foreign-keys'
66
```
77
</CodeGroup>

snippets/generated-code-samples/code_samples_list_dynamic_search_rules_1.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
```bash cURL
44
curl \
55
-X POST 'MEILISEARCH_URL/dynamic-search-rules' \
6-
-H 'Content-Type: application/json' \
7-
--data-binary '{
8-
"offset": 0,
9-
"limit": 20
10-
}'
6+
-H 'Content-Type: application/json'
117
```
128
</CodeGroup>

snippets/generated-code-samples/code_samples_network_control_1.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ curl \
77
--data-binary '{
88
"origin": {
99
"remoteName": "ms-00",
10-
"taskUid": 42
10+
"taskUid": 42,
11+
"networkVersion": "0195e7a8-9c0d-7b3a-8f2e-123456789abc"
1112
},
1213
"message": {
13-
"type": "importFinishedForRemote",
14-
"remote": "ms-01",
15-
"successful": true
14+
"type": "exportNoIndexForRemote",
15+
"remote": "ms-01"
1616
}
1717
}'
1818
```

snippets/generated-code-samples/code_samples_patch_dynamic_search_rule_1.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,18 @@ curl \
66
-H 'Content-Type: application/json' \
77
--data-binary '{
88
"description": "Black Friday 2025 rules",
9-
"priority": 5,
10-
"active": true
9+
"priority": 10,
10+
"active": true,
11+
"conditions": [
12+
{ "scope": "query", "isEmpty": true },
13+
{ "scope": "time", "start": "2025-11-28T00:00:00Z", "end": "2025-11-28T23:59:59Z" }
14+
],
15+
"actions": [
16+
{
17+
"selector": { "indexUid": "products", "id": "123" },
18+
"action": { "type": "pin", "position": 1 }
19+
}
20+
]
1121
}'
1222
```
1323
</CodeGroup>

snippets/generated-code-samples/code_samples_reset_foreign_keys_setting_1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
```bash cURL
44
curl \
5-
-X DELETE 'MEILISEARCH_URL/indexes/movies/settings/foreign-keys'
5+
-X DELETE 'MEILISEARCH_URL/indexes/books/settings/foreign-keys'
66
```
77
</CodeGroup>

snippets/generated-code-samples/code_samples_update_foreign_keys_setting_1.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22

33
```bash cURL
44
curl \
5-
-X PUT 'MEILISEARCH_URL/indexes/movies/settings/foreign-keys' \
5+
-X PUT 'MEILISEARCH_URL/indexes/books/settings/foreign-keys' \
66
-H 'Content-Type: application/json' \
77
--data-binary '[
88
{
99
"foreignIndexUid": "authors",
10-
"fieldName": "authorId"
10+
"fieldName": "author"
11+
},
12+
{
13+
"foreignIndexUid": "authors",
14+
"fieldName": "related_authors"
1115
}
1216
]'
1317
```

0 commit comments

Comments
 (0)