/similar route uses AI-powered search to return a number of documents similar to a target document.
Meilisearch exposes two routes for retrieving similar documents: POST and GET. In the majority of cases, POST will offer better performance and ease of use.
Get similar documents with POST
POST
/indexes/{index_uid}/similar
Path parameters
Body
Example
Response: 200 OK
Get similar documents with GET
GET
/indexes/{index_uid}/similar