younifyd
Menu

Get a search rule

Get a search rule

GET/dynamic-search-rules/{uid}

Use it in a workflow

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

Request

Path parameters

uidstringrequired

Unique identifier of the search rule.

Response

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

uidstring
descriptionstring | null

Human-readable description of the dynamic search rule.

lastUpdatedAtstring | null

Date time of the last update of this rule.

precedenceinteger | null

Precedence of the dynamic search rule. Lower numeric values take precedence over higher ones. If omitted, the rule is treated as having the lowest precedence. This precedence is used to resolve conflicts between matching rules: - If the same document is selected by multiple rules, the smallest `priority` number wins - If different documents are pinned to the same position, they are ordered by ascending `priority`

activeboolean

Whether the dynamic search rule is active.

conditionsobject
timeoneOf
queryoneOf
filteroneOf
actionsobject

List of actions to apply when this rule is active for the query.

pinarray<object>3 fields

Pins a selected document.

scalearray<object>4 fields

Applies a multiplicative factor to the score of selected documents.

json
{
  "uid": "movies",
  "description": "string",
  "lastUpdatedAt": "2025-01-01T00:00:00Z",
  "precedence": 0,
  "active": false,
  "conditions": {
    "time": null,
    "query": null,
    "filter": null
  },
  "actions": {
    "pin": [
      {
        "id": "string",
        "position": 0,
        "indexUid": "string"
      }
    ],
    "scale": [
      {
        "weight": 0,
        "indexUid": "string",
        "ids": null,
        "filter": null
      }
    ]
  }
}

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