younifyd
Menu

Bulk Get Result Ranking Operation

Bulk get result ranking rules

POST/rest/search/v2/admin/pipelines/{pipelineId}/resultRankings/bulkGet

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the Bulk Get Result Ranking Operation action (under Search).
  3. Fill in the fields below, then reference the result from later steps as {{bulkGetResultRankingOperation.response.data}}.

Request

Path parameters

pipelineIdstringrequired

The unique identifier of the target query pipeline.

Query parameters

organizationIdstring

The unique identifier of the target Coveo Cloud organization. Specifying a value for this parameter is only necessary when you are authenticating the API call with an OAuth2 token.

kindstring

The kind of result ranking rules to allow in the returned list (i.e., `featured_result` or `ranking_expression`). By default, both kinds of rules are allowed.

enabledStatusboolean

The enabled status of result ranking rules to allow in the returned list. Set to `true` to only allow rules whose `enabled` property is set to `true`, and vice versa. By default, both enabled and disabled rules are allowed.

statementGroupIdstring

The unique identifier of the statement group.

isOrderAscendingboolean

Whether to sort the results in ascending order.

Default true

filterstring

The query filter to match. This allows you to search within query pipeline statement definitions and descriptions. By default, results are not required to match a specific query filter.

pageinteger (int32)

The 0-based number of the page of results to get.

Default 0

perPageinteger (int32)

The number of results to include per page.

Default 20

Request body

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

idsarray<string>

A list of resource identifiers to get. A maximum of **1000** can be sent.

json
{
  "ids": [
    "string"
  ]
}

Response

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

groupedByobject
groupsobjectrequired2 fields
statusobjectrequired2 fields
typeobjectrequired2 fields
resultRankingsarray<object>
associatedGroupobject3 fields
idstringrequired

The identifier of the result ranking rule

resultRankingoneOfrequired
totalCountinteger (int32)
totalPagesinteger (int32)
json
{
  "groupedBy": {
    "groups": {
      "associated": {},
      "orphaned": 0
    },
    "status": {
      "active": 0,
      "inactive": 0
    },
    "type": {
      "featuredResults": 0,
      "rankingExpressions": 0
    }
  },
  "resultRankings": [
    {
      "id": "string",
      "resultRanking": null,
      "associatedGroup": {
        "id": "679adb80-444e-11ea-b77f-2e728ce88125",
        "name": "Community",
        "status": "active"
      }
    }
  ],
  "totalCount": 0,
  "totalPages": 0
}

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