Fill in the fields below, then reference the result from later steps as {{searchUsingPost.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 {{searchUsingPost.response.data.<field>}}.
apiVersioninteger (int32)
The version of the Search API that sent the query.
categoryFacetsarray<object>
Hierarchical data results corresponding the to hierarchical data in the query.
fieldstring
parentValuesarray<object>2 fields
valuesarray<object>2 fields
durationinteger (int32)
The `requestDuration` added to the computing time (in milliseconds) that was required by the Search API.
errorsarray<string>
The errors that critically changed the query behaviour. These should be addressed right away to prevent future errors.
exceptionobject
codestringrequired
contextstring
extendedResultsobject
Additional response attributes coming from the execution of query pipeline integrations.
Currently supported properties:
- `generativeQuestionAnsweringId`: A stream ID to access the generated answer.
facetsarray<object>
The facet results returned by the query. These results are included in the order they were requested in the `facets` query parameter.
domainobject2 fields
The domain of the facet. It represents the lowest and highest values possible for this facet.
**Note:** This property is only populated when the facet is a range facet and `generateAutomaticRanges: true` was requested.
fieldstringrequired
The name of the field on which the facet is based.
**Example: `author`
indexScorenumber (double)required
The ranking score computed by the index for this facet.
isFromAutoSelectboolean
Whether the facet was recommended by Coveo ML.
labelstring
A human-readable title that describes the facet.
mlScorenumber (double)
The ranking score computed by Coveo ML DNE for this facet.
moreValuesAvailablebooleanrequired
Whether additional values are available for the facet.
valuesarray<oneOf>required
The returned facet values.
generateAutomaticFacetsobject
Automatically generated facets based on the `generateAutomaticFacets` request parameter.
facetsarray<object>8 fields
groupByResultsarray<object>
The Group By results returned by the query. These results are included in the order they were requested in the `groupBy` query parameter.
Fieldstring
> This property is deprecated and Coveo Cloud V1 only; The lowercase `field` should be used instead.
GlobalComputedFieldResultsarray<number (double)>
> This property is deprecated and V1 only; The lowercase `globalComputedFieldResults` should be used instead.
fieldstringrequired
The field on which the Group By operation was executed.
The global computed fields that were processed by the index.
valuesarray<object>required11 fields
The resulting Group By values.
indexstring
The identifier of the index mirror against which the query was executed (see the `indexToken` query parameter).
indexDurationinteger (int32)
The time (in milliseconds) that was required by the index to find the query items.
indexTokenstring
The Base64 encoded identifier of the index mirror to forward the request to. See also the `index` parameter.
If you do not specify an `indexToken` (or `index`) value, any index mirror could be used.
**Note:** Passing an `indexToken` (or `index`) value has no effect when the results of a specific request can be returned from cache (see the `maximumAge` parameter).
isFallbackToAdminboolean
Whether the admin session ID was allowed and used by the Coveo for Salesforce search engine. The value will be set to `true` when it is the case, and might be absent or set to `false` otherwise.
phrasesToHighlightobject
The phrases to highlight in each query result item. This property is populated when the basic query expression (see the `q` query parameter) contains one or several exact phrase match requests (terms between double quote characters).
pipelinestring
The name of the query pipeline to use for this request (bypassing its conditions, if it has any).
You can pass an empty `pipeline` value to use an empty query pipeline (i.e., `?pipeline=` or `"pipeline": ""`).
If a query does not contain the `pipeline` parameter, the first query pipeline whose conditions are met by the request is used (query pipelines without conditions are not evaluated). Should the request fail to meet the conditions of each evaluated query pipeline, the default query pipeline of the target Coveo Cloud organization is used (bypassing its conditions, if it has any).
**Notes:**
- This parameter will be overridden if the search request is authenticated by a [search token](https://docs.coveo.com/en/56/) that enforces a specific [`pipeline`](https://docs.coveo.com/en/56/#pipeline-string-optional), or a [`searchHub`](https://docs.coveo.com/en/56/#searchhub-string-optional) that routes queries to a specific `pipeline` via a query pipeline condition.
- For reporting purposes, when logging a **Search** usage analytics event for a query, the `queryPipeline` field of that event should be set to the final `pipeline` value used in the query execution. This value is determined from the query response. If no pipeline was specified, it uses the `"default"` value.
See also [Managing Query Pipelines](https://docs.coveo.com/en/1450/).
queryCorrectionobject
Property returned when the `queryCorrection` feature is enabled.
It will either return:
- The `originalQuery` and `correctedQuery` if the query was automatically corrected.
- A list of `corrections` that could be be manually applied afterward.
correctedQuerystring
If the query was automatically corrected, this property indicates the corrected basic query expression (`q`) that was executed instead of the original one.
correctedQueryTriggerstring
If the query was automatically corrected, this property indicates which strategy triggered the correction.
Possible values: `whenNoResults`, `alwaysOnQS`
correctionsarray<object>2 fields
If the query wasn't automatically corrected, this property contains the basic query expression (`q`) keyword corrections suggested by the _Did You Mean_ index feature.
originalQuerystring
If the query was automatically corrected, this property indicates the original basic query expression (`q`) that triggered the automatic query correction.
queryCorrectionsarray<object>
The query corrections suggested by the index, if the `enableDidYouMean` query parameter was set to `true`.
correctedQuerystringrequired
The resulting query expression correction suggestion.
wordCorrectionsarray<object>required4 fields
The word correction suggestions.
questionAnswerobject
answerFoundbooleanrequired
answerSnippetstringrequired
documentIdobjectrequired2 fields
questionstringrequired
rawobject
relatedQuestionsarray<object>required4 fields
scorenumberrequired
refinedKeywordsarray<string>
The refined keywords used by the Coveo ML automatic relevance tuning model.
requestDurationinteger (int32)
The `indexDuration` added to the time (in milliseconds) that was required to establish a connection between the Search API server and the index server.
resultsarray<object>
The items returned for the query.
ClickUristring
> This property is deprecated; it should not be populated by Search API V2 searches.
Excerptstring
> This property is deprecated; it should not be populated by Search API V2 searches.
FirstSentencesstring
> This property is deprecated; it should not be populated by Search API V2 searches.
PrintableUristring
> This property is deprecated; it should not be populated by Search API V2 searches.
Titlestring
> This property is deprecated; it should not be populated by Search API V2 searches.
UniqueIdstring
> This property is deprecated; it should not be populated by Search API V2 searches.
Uristring
> This property is deprecated; it should not be populated by Search API V2 searches.
absentTermsarray<string>required
The basic query expression terms which this query result item does not match.
**Note:**
> This property is populated by terms from the query pipeline-processed `q` value (not from the original `q` value).
childResultsarray<oneOf>required
An array of references to the children of this item, if result folding was applied (see the `filterField` query parameter). The query results contained in this field will have both their parent and child results set to `null`.
clickUristringrequired
The hyperlinkable item URI.
**Notes:**
- Use the `clickUri` value when you want to create hyperlinks to the item, rather than the `uri` or `printableUri` value.
- The `clickUri` value is not necessarily unique for each item.
excerptstringrequired
The contextual excerpt generated for the item (see the `excerptLength` query parameter).
excerptHighlightsarray<object>required2 fields
The length and offset of each word to highlight in the item `excerpt` string.
firstSentencesstringrequired
The first sentences retrieved from the item (see the `retrieveFirstSentences` query parameter).
The length and offset of each word to highlight in the item `printableUri` string.
rankingInfostringrequired
The raw debug information generated by the index to detail how the item was ranked. This property is `null` unless the `debug` query parameter is set to `true`.
rankingModifierstring
If applicable, represents the type of ranking modification that was applied to this result.
**Note:** When logging a **Click** usage analytics event for an opened query result item, the `rankingModifier` field of that event should be set to the `rankingModifier` value of the opened query result item, if available.
ratingnumber (double)required
**Note:** The value of this property is always `3`.
rawobjectrequired
The values of the fields which were retrieved for this item (see the `fieldsToInclude` and `fieldsToExclude` query parameters).
scoreinteger (int32)required
The total ranking score computed for the item (see the `sortCriteria` and `rankingFunctions` query parameters).
summarystringrequired
The item summary (see the `summaryLength` query parameter).
summaryHighlightsarray<object>required2 fields
The length and offset of each word to highlight in the item `summary` string.
titlestringrequired
The item title.
**Note:** When logging a **Click** usage analytics event for an opened query result item, the `documentTitle` field of that event should be set to the `title` value of the opened query result item.
titleHighlightsarray<object>required2 fields
The length and offset of each word to highlight in the item `title` string.
totalNumberOfChildResultsinteger (int64)required
The total number of children available in the index for this item, if result folding was applied (see the `filterField` query parameter).
uniqueIdstringrequired
The unique item identifier. You should consider the `uniqueId` value as an opaque string.
uristringrequired
The item URI.
**Notes:**
- Avoid using the `uri` value to create hyperlinks to the item. Use the `ClickUri` value instead.
- When logging a **Click** usage analytics event for an opened query result item, the `documentUrl` field of that event should be set to the `uri` value of the opened query result item.
searchUidstring
The query [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). Each query sent to the Search API has its own randomly generated `searchUid`.
**Note:** When logging a **Search** or **Custom** usage analytics event for a query, or a **Click** usage analytics event for an opened query result item, the `searchQueryUid` field of that event should be set to the `searchUid` value of the query response.
splitTestRunstring
The name of the active A/B test for the query pipeline. This field appears only when an A/B test is active. Use it to identify the test associated with the query.
suggestedFacetsarray<object>
A DNE facet suggestion.
fieldstringrequired
The name of the field on which the DNE facet suggestion is based.
**Example**: `author`
valuesarray<object>required2 fields
The name of the field on which the DNE facet suggestion is based.
**Example**: `author`
termsToHighlightobject
The terms to highlight in each query result item. Includes all basic query expression keywords, as well as any word stemmed from a basic query expression keyword (see the `q` query parameter), unless this keyword was preceded by the no stemming Coveo Cloud query syntax operator (`+`).
totalCountinteger (int32)
The total number of items matching the query for the current user (security trimming applied).
**Note:** When logging a **Search** usage analytics event for a query, the `numberOfResults` field of that event should be set to the `totalCount` value of the query (for reporting purposes).
totalCountFilteredinteger (int32)
The total number of items matching the query for the current user (security trimming applied) after duplicate filtering has been applied (see the `duplicateFiltering` query parameter).
triggersarray<object>
The actions to perform by the client based on the Trigger statements defined in query pipelines (see the `pipeline` query parameter).
**Note:**
> A Trigger statement must have a condition. Otherwise, the Search API ignores it and does not include it in the `triggers` array of the query response (see [Manage trigger rules](https://docs.coveo.com/en/3413/)).
contentanyrequired
typestringrequired
The type of Coveo Cloud query pipeline **Trigger** statement (see [Manage trigger rules](https://docs.coveo.com/en/3413/)).
One ofnotifyexecutequeryredirect
warningsarray<string>
The errors that did not make the query fail, but should be addressed. They might be security issues, deprecated behaviors, or any other kind of concern.
json
{"apiVersion":2,"categoryFacets":[{"field":"string","parentValues":[{"numberOfResults":0,"value":"string"}],"values":[{"numberOfResults":0,"value":"string"}]}],"duration":1235,"facets":[{"field":"author","indexScore":0,"moreValuesAvailable":false,"values":[null],"domain":{"end":null,"start":null},"isFromAutoSelect":false,"label":"string","mlScore":0}],"groupByResults":[{"field":"@author","globalComputedFieldResults":[0],"values":[{"computedFieldResults":[243.72],"lookupValue":"","numberOfResults":42,"score":0,"value":"Bob Jones","valueType":"Standard"},{"computedFieldResults":[201.82],"lookupValue":"","numberOfResults":37,"score":0,"value":"Erika Miller","valueType":"Standard"},{"computedFieldResults":[177.56],"lookupValue":"","numberOfResults":24,"score":0,"value":"David Allen","valueType":"Standard"},{"computedFieldResults":[143.92],"lookupValue":"","numberOfResults":11,"score":0,"value":"Carrie Green","valueType":"Standard"},{"computedFieldResults":[122.85],"lookupValue":"","numberOfResults":77,"score":0,"value":"Anonymous","valueType":"Standard"}],"Field":"string","GlobalComputedFieldResults":[0]}],"index":"mycoveocloudv2organizationid-cqjd206sta1xb9qyxfhhnsu294-Indexer-2-9rbfxhp1n07cth80ckzeh3zotc","indexDuration":1175,"phrasesToHighlight":{"cloud v2":{"cloud":[],"v2":[]}},"pipeline":"CustomerQueryPipeline","refinedKeywords":["v2","platform","cloud","coveo"],"requestDuration":1181,"results":[{"absentTerms":["platform","native","solution"],"childResults":[null],"clickUri":"https://example.com/t/1/898/2","excerpt":"... the new Coveo Cloud V2 and Coveo Cloud V1 ... the main differences between the two Coveo Cloud versions ...","excerptHighlights":[{"length":5,"offset":15}],"firstSentences":"Hello, I know Coveo currently hosts organizations in two independent cloud platforms, the new Coveo Cloud V2 and Coveo Cloud V1, the original Coveo offering in the cloud. I would like to learn the main differences between the two Coveo Cloud versions ...","firstSentencesHighlights":[{"length":5,"offset":15}],"flags":"HasHtmlVersion;HasMobileHtmlVersion","hasHtmlVersion":true,"hasMobileHtmlVersion":true,"isRecommendation":false,"isTopResult":false}]}
Need more? See the Coveo guide for connection setup and behaviour shared by every action.