younifyd
Menu

List Result Ranking Rules

Get a list of result ranking rules

GET/rest/search/v2/admin/pipelines/{pipelineId}/resultRankings

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the List Result Ranking Rules action (under Search).
  3. Fill in the fields below, then reference the result from later steps as {{listResultRankingRules.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. **Deprecated:** Use `ruleTypes` instead.

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. **Deprecated:** Use `ruleStatuses` instead.

statementGroupIdstring

The unique identifier of the statement group.

isOrderAscendingboolean

Whether to sort the results in ascending order.

Default true

ruleStatusesarray<string>

The rule status to allow in the results. Available statuses are: "active", "inactive". If you leave this parameter undefined, all rule statuses will be allowed in the results. If you pass an empty array (`[]`), no rules will be returned.

Default ["active","inactive"]

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.

ruleTypesarray<string>

The rule types to allow in the results. Available types are "featuredResults", "rankingExpressions". If you leave this parameter undefined, all rule types will be allowed in the results. If you pass an empty array (`[]`), no rules will be returned.

Default ["featuredResults","rankingExpressions"]

associatedGroupsarray<string>

The group names to allow in the results. Include the `null` value in the array to allow rules that are not associated with any groups (e.g., `[null, "mygroup"]`). If you leave this parameter undefined, all groups will be allowed in the results. If you pass an empty array (`[]`), no rules will be returned.

expandarray<string>

The related resources to expand in the response. Set to `condition.detailed` to include the detailed version of the condition alongside `condition.reference` in each result ranking condition.

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

Response

Returns 200 with an object. Read it in later steps with {{listResultRankingRules.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.