Skip to content

Commit ee027a2

Browse files
Update code samples [skip ci]
1 parent d524775 commit ee027a2

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<CodeGroup>
2+
3+
```bash cURL
4+
curl \
5+
-X PATCH 'MEILISEARCH_URL/indexes/INDEX_A' \
6+
-H 'Content-Type: application/json' \
7+
--data-binary '{ "uid": "INDEX_B" }'
8+
```
9+
</CodeGroup>

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{

snippets/samples/code_samples_typo_tolerance_guide_5.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ $client->index('movies')->updateTypoTolerance([
2727
]);
2828
```
2929

30+
```ruby Ruby
31+
index('books').update_typo_tolerance({ disable_on_numbers: true })
32+
```
33+
3034
```go Go
3135
client.Index("movies").UpdateTypoTolerance(&meilisearch.TypoTolerance{
3236
DisableOnNumbers: true

0 commit comments

Comments
 (0)