younifyd
Menu

List search rules

List search rules

POST/dynamic-search-rules

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the List search rules action (under Search rules).
  3. Fill in the fields below, then reference the result from later steps as {{listSearchRules.response.data}}.

Request

Request body

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

offsetinteger

Number of rules to skip. Defaults to 0.

limitinteger

Maximum number of rules to return. Default to 20.

filteroneOf
showTargetboolean

Show the target state of the dynamic search rules. - Enabling this boolean adds additional information about the future state of the dynamic search rules in the response, such as whether there are pending dynamic search rules tasks or not. - Enabling this boolean requires the Enterprise Edition.

json
{
  "offset": 0,
  "limit": 0,
  "filter": null,
  "showTarget": false
}

Response

Returns 200 with an object. Read it in later steps with {{listSearchRules.response.data.<field>}}.

resultsarray<any>

Rules for the current page.

offsetinteger

Number of rules skipped.

limitinteger

Maximum number of rules returned in a single request.

totalinteger

Total number of rules that match the filter.

totalRuleCountinteger | null

Total number of declared rules, including those that don't match the filter. Returned when `showTarget` is present and set to `true` in the request.

targetTotalRuleCountinteger | null

Total number of declared rules after processing all pending tasks. Returned when `showTarget` is present and set to `true` in the request.

needsProcessingboolean | null

Whether the dynamic search rules have at least a pending task to process. Returned when `showTarget` is present and set to `true` in the request.

taskUidsarray | null

The [`uid`](https://www.meilisearch.com/docs/reference/api/async-task-management/list-tasks#response-results-items-uid)s of the pending tasks to process. Returned when `showTarget` is present and set to `true` in the request.

json
{
  "results": [
    null
  ],
  "offset": 0,
  "limit": 0,
  "total": 0,
  "totalRuleCount": 0,
  "targetTotalRuleCount": 0,
  "needsProcessing": false,
  "taskUids": null
}

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