Skip to content

Commit 59b8e33

Browse files
move code sample to correct file
1 parent bdfded5 commit 59b8e33

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

.code-samples.meilisearch.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,3 +1533,19 @@ update_network_1: |-
15331533
}
15341534
}
15351535
}'
1536+
search_parameter_reference_media_1: |-
1537+
curl \
1538+
-X POST 'MEILISEARCH_URL/indexes/INDEX_NAME/search' \
1539+
-H 'Content-Type: application/json' \
1540+
--data-binary '{
1541+
"hybrid": {
1542+
"embedder": "EMBEDDER_NAME"
1543+
},
1544+
"media": {
1545+
"FIELD_A": "VALUE_A",
1546+
"FIELD_B" : {
1547+
"FIELD_C": "VALUE_B"
1548+
"FIELD_D": "VALUE_C"
1549+
}
1550+
}
1551+
}'

reference/api/search.mdx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,24 +1312,7 @@ It is mandatory to specify an embedder when using `media`.
13121312

13131313
#### Example
13141314

1315-
<CodeSamplesSearchParameterReferenceLocales1 />
1316-
1317-
```sh
1318-
curl -X POST 'MEILISEARCH_URL/indexes/INDEX_NAME/search' \
1319-
-H 'content-type: application/json' \
1320-
--data-binary '{
1321-
"hybrid": {
1322-
"embedder": "EMBEDDER_NAME"
1323-
},
1324-
"media": {
1325-
"FIELD_A": "VALUE_A",
1326-
"FIELD_B" : {
1327-
"FIELD_C": "VALUE_B"
1328-
"FIELD_D": "VALUE_C"
1329-
}
1330-
}
1331-
}'
1332-
```
1315+
<CodeSamplesSearchParameterReferenceMedia1 />
13331316

13341317
```json
13351318
{

0 commit comments

Comments
 (0)