younifyd
Menu

Plan Search Using Post V3

Plan search execution

POST/rest/search/v3/plan

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the Plan Search Using Post V3 action (under Search).
  3. Fill in the fields below, then reference the result from later steps as {{planSearchUsingPostV3.response.data}}.

Request

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.

viewAllContentboolean

Whether to bypass document permissions. Only effective if the access token grants the **Search - View all content** privilege.

Response

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

parsedInputobject
advancedExpressionstring

The advanced query expression, typically generated by code (e.g., when toggling facet values). **Note:** When logging a **Search** usage analytics event for a query, the `advancedQuery` field of that event should be set to the `aq` value of the corresponding query (for reporting purposes).

basicExpressionstring

The basic query expression, typically the keywords entered by the end user in a query box. **Note:** When logging a **Search** usage analytics event for a query, the `queryText` field of that event should be set to the `q` value of the corresponding query.

constantExpressionstring

The constant query expression, typically populated with expressions that must apply to all queries sent from a specific search interface (e.g., from a specific tab). Once evaluated, the result sets of those expressions are kept in a special cache. **Tip:** Avoid including dynamic content in the constant query expression. Otherwise you risk filling up the cache with useless data, which can have a negative impact on performance. **Notes:** - Other parts of the query expression can also benefit from the index cache (see the `maximumAge` parameter). However, using the constant query expression allows you to explicitly cache specific result sets. - Temporal keywords (`now`, `today`, `yesterday`) in the constant query expression are only re-evaluated once per 3-4 minutes; therefore, you should avoid basing `cq` expressions on temporal keywords if you require split second accuracy.

disjunctionExpressionstring

The disjunction query expression, typically populated by Coveo ML automatic relevance tuning models to ensure that relevant items are included in the query results. The disjunction query expression is merged with the other parts of the query expression using an `OR` operator. The resulting query expression is `(((q aq) OR (dq)) cq)`.

largeExpressionstring

The large query expression, typically populated with a case description, long textual query, or any other form of text that can help refine a query. The Coveo ML Intelligent Term Detection (ITD) feature can extract relevant keywords from the large query expression and inject those keywords in the basic query expression (see the `q` parameter).

mandatoryExpressionstring

The filter query expression to apply when authenticating a query with this search token. This expression will be merged with the constant part of the query expression (`cq`) using an `AND` operator. The filter can also be used in query pipeline condition statements (e.g., `when $constantQuery contains \"@source==KnowledgeBase\"`).

preprocessingOutputobject
triggersarray<object>required

The query response output generated by _trigger_ rules in the query pipeline (i.e., by `execute`, `notify`, `query`, and `redirect` rules).

json
{
  "parsedInput": {
    "advancedExpression": "@year==2017",
    "basicExpression": "Coveo \"Cloud V2\" platform",
    "constantExpression": "@documenttype==forumpost",
    "disjunctionExpression": "@permanentid=aadd702687c62910d6da8347304ec2cedfd0b06d5b4d2794a555ce5688bd",
    "largeExpression": "I am looking for an enterprise-class native cloud SaaS/PaaS solution that provides a unified and secure way to search for contextually relevant content across multiple enterprise systems.",
    "mandatoryExpression": "@source==KnowledgeBase"
  },
  "preprocessingOutput": {
    "triggers": [
      {}
    ]
  }
}

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