younifyd
Menu

Perform a multi-search

Perform a multi-search

POST/multi-search

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the Perform a multi-search action (under Multi-search).
  3. Fill in the fields below, then reference the result from later steps as {{performAMultiSearch.response.data}}.

Request

Request body

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

queriesarray<object>required

An array of search queries to execute. Each query can target a different index and have its own parameters. When `federation` is `null`, results are returned separately for each query. When `federation` is set, results are merged. Each query object must include `indexUid` to specify which index to search.

indexUidstringrequired
qstring | null

Query string

offsetinteger | null

Number of documents to skip

limitinteger | null

Maximum number of documents returned

pageinteger | null

Request a specific page of results

hitsPerPageinteger | null

Maximum number of documents returned for a page

attributesToRetrievearray | null

Attributes to display in the returned documents

attributesToCroparray | null

Attributes whose values have to be cropped

cropLengthinteger

Maximum length of cropped value in words

cropMarkerstring

String marking crop boundaries

attributesToHighlightarray | null

Highlight matching terms contained in an attribute

highlightPreTagstring

String inserted at the start of a highlighted term

highlightPostTagstring

String inserted at the end of a highlighted term

showMatchesPositionboolean

Return matching terms location

filterany

Filter queries by an attribute's value

sortarray | null

Sort search results by an attribute's value

distinctstring | null

Restrict search to documents with unique values of specified attribute

facetsoneOf
matchingStrategyoneOf
attributesToSearchOnarray | null

Restrict search to the specified attributes

rankingScoreThresholdnumber | null

Stop the search at the first document whose [ranking score](https://www.meilisearch.com/docs/learn/relevancy/ranking_score) is below this value (between 0.0 and 1.0). All the documents after this document are excluded from the hits. Excluded hits do not count toward `estimatedTotalHits`, `totalHits`, or facet distribution. When used together with `page` and `hitsPerPage`, this parameter may reduce performance because Meilisearch must score all matching documents.

localesarray | null

Languages to use for query tokenization

hybridoneOf
vectorarray | null

Search using a custom query vector

retrieveVectorsboolean

Return document and query vector data

mediaany

Perform AI-powered search queries with multimodal content

personalizeoneOf
useNetworkboolean | null

When `true`, runs the query on the whole network (all shards covered exactly once). When `false`, the query runs locally. When omitted or `null`, the default value depends on whether the sharding is enabled for the instance: - If the instance has sharding enabled (has a leader), defaults to `true`. - Otherwise defaults to `false`. It also requires the `network` [experimental feature](http://localhost:3000/reference/api/experimental-features/configure-experimental-features). Values: `true` = use the whole network; `false` = local, default = see above. When using the network, the index must exist with compatible settings on all remotes.

showRankingScoreboolean

Display the global ranking score of a document

showRankingScoreDetailsboolean

Adds a detailed global ranking score field

showPerformanceDetailsboolean | null

Adds a detailed performance details field

federationOptionsoneOf
inlineRuleoneOf
federationoneOf
json
{
  "queries": [
    {
      "indexUid": "movies",
      "q": "string",
      "offset": 0,
      "limit": 0,
      "page": 0,
      "hitsPerPage": 0,
      "attributesToRetrieve": null,
      "attributesToCrop": null,
      "cropLength": 0,
      "cropMarker": "string",
      "attributesToHighlight": null,
      "highlightPreTag": "string"
    }
  ],
  "federation": null
}

Response

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

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

Perform a multi-search — Meilisearch — Documentation