Skip to content

Commit fbef9cb

Browse files
Update code samples [skip ci]
1 parent 398495b commit fbef9cb

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

snippets/samples/code_samples_search_parameter_reference_media_1.mdx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,40 @@ curl \
1818
}'
1919
```
2020

21+
```javascript JS
22+
client.index('INDEX_NAME').search('a futuristic movie', {
23+
hybrid: {
24+
embedder: 'EMBEDDER_NAME'
25+
},
26+
media: {
27+
textAndPoster: {
28+
text: 'a futuristic movie',
29+
image: {
30+
mime: 'image/jpeg',
31+
data: 'base64EncodedImageData'
32+
}
33+
}
34+
}
35+
})
36+
```
37+
38+
```php PHP
39+
$client->index('INDEX_NAME')->search('a futuristic movie', [
40+
'hybrid' => [
41+
'embedder' => 'EMBEDDER_NAME'
42+
],
43+
'media' => [
44+
'textAndPoster' => [
45+
'text' => 'a futuristic movie',
46+
'image' => [
47+
'mime' => 'image/jpeg',
48+
'data' => 'base64EncodedImageData'
49+
]
50+
]
51+
]
52+
]);
53+
```
54+
2155
```go Go
2256
client.Index("INDEX_NAME").Search("", &meilisearch.SearchRequest{
2357
Hybrid: &meilisearch.SearchRequestHybrid{

0 commit comments

Comments
 (0)