younifyd
Menu

Get similar documents with POST

Get similar documents with POST

POST/indexes/{index_uid}/similar

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the Get similar documents with POST action (under Similar documents).
  3. Fill in the fields below, then reference the result from later steps as {{getSimilarDocumentsWithPost.response.data}}.

Request

Path parameters

index_uidstringrequired

Unique identifier of the index.

Request body

Enter the body as JSON in the step's Body field.

idstringrequired

Document ID to find similar documents for

offsetinteger

Number of documents to skip

Default 0

limitinteger

Maximum number of documents returned

Default 20

filterany

Filter queries by an attribute's value

embedderstringrequired

Name of the embedder to use for semantic similarity

attributesToRetrievearray | null

Attributes to display in the returned documents

retrieveVectorsboolean

Return document vector data

showRankingScoreboolean

Display the global ranking score of a document

showRankingScoreDetailsboolean

Adds a detailed global ranking score field

showPerformanceDetailsboolean

Adds a detailed performance details field

rankingScoreThresholdnumber (double)

Excludes results with low ranking scores

json
{
  "id": "string",
  "embedder": "string",
  "offset": 0,
  "limit": 20,
  "filter": null,
  "attributesToRetrieve": null,
  "retrieveVectors": false,
  "showRankingScore": false,
  "showRankingScoreDetails": false,
  "showPerformanceDetails": false,
  "rankingScoreThreshold": 0
}

Response

Returns 200 with a any. Read it in later steps with {{getSimilarDocumentsWithPost.response.data.<field>}}.

Need more? See the Meilisearch guide for connection setup and behaviour shared by every action.