Skip to content

Commit ec09d9c

Browse files
committed
Add get_similar_documents code-sample
1 parent 9acc20f commit ec09d9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.code-samples.meilisearch.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,3 +742,5 @@ update_localized_attribute_settings_1: |-
742742
])
743743
reset_localized_attribute_settings_1: |-
744744
client.index('INDEX_NAME').reset_localized_attributes()
745+
get_similar_post_1: |-
746+
client.index("INDEX_NAME").get_similar_documents({"id": "TARGET_DOCUMENT_ID", "embedder": "default"})

0 commit comments

Comments
 (0)