Skip to content

Commit 75567ed

Browse files
add missing embedder fields where it is now mandatory
1 parent 16b2f60 commit 75567ed

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.code-samples.meilisearch.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,10 @@ search_parameter_guide_hybrid_1: |-
12481248
search_parameter_guide_vector_1: |-
12491249
curl -X POST 'localhost:7700/indexes/INDEX_NAME/search' \
12501250
-H 'content-type: application/json' \
1251-
--data-binary '{ "vector": [0, 1, 2] }'
1251+
--data-binary '{
1252+
"vector": [0, 1, 2],
1253+
"embedder": "EMBEDDER_NAME"
1254+
}'
12521255
get_search_cutoff_1: |-
12531256
curl \
12541257
-X GET 'http://localhost:7700/indexes/movies/settings/search-cutoff-ms'
@@ -1355,11 +1358,12 @@ get_similar_post_1: |-
13551358
-H 'Content-Type: application/json' \
13561359
-H 'Authorization: Bearer DEFAULT_SEARCH_API_KEY' \
13571360
--data-binary '{
1358-
"id": TARGET_DOCUMENT_ID
1361+
"id": TARGET_DOCUMENT_ID,
1362+
"embedder": "EMBEDDER_NAME"
13591363
}'
13601364
get_similar_get_1: |-
13611365
curl \
1362-
-X GET 'http://localhost:7700/indexes/INDEX_NAME/similar?id=TARGET_DOCUMENT_ID'
1366+
-X GET 'http://localhost:7700/indexes/INDEX_NAME/similar?id=TARGET_DOCUMENT_ID&embedder=EMBEDDER_NAME'
13631367
search_parameter_reference_ranking_score_threshold_1: |-
13641368
curl \
13651369
-X POST 'http://localhost:7700/indexes/INDEX_NAME/search' \

reference/api/similar.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Retrieve documents similar to a specific search result.
2626
| Parameter | Type | Default value | Description |
2727
| ---------------------------------------------------------------------------- | ---------------- | ------------- | ---------------------------------------------- |
2828
| **`id`** | String or number | `null` | Identifier of the target document (mandatory) |
29-
| **[`embedder`](/reference/api/search#hybrid-search-experimental)** | String | `"default"` | Embedder to use when computing recommendations |
29+
| **[`embedder`](/reference/api/search#hybrid-search-experimental)** | String | `"default"` | Embedder to use when computing recommendations. Mandatory |
3030
| **[`attributesToRetrieve`](/reference/api/search#attributes-to-retrieve)** | Array of strings | `["*"]` | Attributes to display in the returned documents|
3131
| **[`offset`](/reference/api/search#offset)** | Integer | `0` | Number of documents to skip |
3232
| **[`limit`](/reference/api/search#limit)** | Integer | `20` | Maximum number of documents returned |
@@ -83,7 +83,7 @@ Retrieve documents similar to a specific search result.
8383
| Parameter | Type | Default value | Description |
8484
| ---------------------------------------------------------------------------- | ---------------- | ------------- | ---------------------------------------------- |
8585
| **`id`** | String or number | `null` | Identifier of the target document (mandatory) |
86-
| **[`embedder`](/reference/api/search#hybrid-search-experimental)** | String | `"default"` | Embedder to use when computing recommendations |
86+
| **[`embedder`](/reference/api/search#hybrid-search-experimental)** | String | `"default"` | Embedder to use when computing recommendations. Mandatory |
8787
| **[`attributesToRetrieve`](/reference/api/search#attributes-to-retrieve)** | Array of strings | `["*"]` | Attributes to display in the returned documents|
8888
| **[`offset`](/reference/api/search#offset)** | Integer | `0` | Number of documents to skip |
8989
| **[`limit`](/reference/api/search#limit)** | Integer | `20` | Maximum number of documents returned |

0 commit comments

Comments
 (0)