Pick the Update Association action (under Search).
Fill in the fields below, then reference the result from later steps as {{updateAssociation.response.data}}.
Request
Path parameters
pipelineIdstringrequired
The unique identifier of the target query pipeline.
associationIdstringrequired
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.
Request body
Enter the body as JSON in the step's Body field.
cacheMaximumAgestring
The maximum age of cached query results the ML model should accept, in the ISO - 8601 format only including the seconds and milliseconds part. **Default:** `PT1800S`.
For each incoming query to be processed by the ML model, if a result set for an identical previously made query is available in cache and this result set is not older than the specified value, the ML model makes recommendations based on that cached query result set. Otherwise, the query is executed against the index.
conditionstring
The unique identifier of the condition that must be satisfied for a request to be processed by the ML model.
contentIdKeysarray<string>
The names of the fields to use to uniquely identify items in the index.
**Default:** `["permanentid","urihash"]`
customQueryParametersobject
The additional parameters to send to Coveo ML.
Among other things, this can be used to specify the [`strategy`](https://docs.coveo.com/en/p85e0425/) to use when querying a Product Recommendations model (for example, `{ "strategy": "frequentBought" }`. The valid `strategy` values are:
- `cart`
- `frequentBought`
- `frequentViewed`
- `popularBought`
- `popularViewed`
- `recentlyBought`
- `recentlyViewed`
- `user`
descriptionstring
The ML model association description.
dynamicNavigationExperienceobject
automaticSelectionobject1 fields
enableWordCompletionboolean
Whether the ML model should attempt to complete the last word of the basic query expression and increase the ranking score of the resulting expression so that it is returned as the first completion suggestion.
Used by the following ML models:
- Query suggestions (default value: `true`)
exclusiveboolean
Whether the Search API should only return items which were recommended by the ML model, even if other items matching the query were found in the index.
Used by the following ML models:
- Event recommendations (default value: `true`)
- Product recommendations (default value: `true`)
intelligentTermDetectionboolean
Whether the ML model should use the Intelligent Term Detection (ITD) feature to refine queries by extracting relevant keywords from the large query expression and injecting those in the basic query expression.
Used by the following ML models:
- Automatic relevance tuning (default value: `false`)
The minimum number of keywords that need to be present in an Intelligent Term Detection (ITD) response to convert it to a partial match expression.
**Notes:**
- This parameter has no meaning unless the `intelligentTermDetection` parameter is set to `true`.
Used by the following ML model:
- Automatic relevance tuning (default value: `1`)
An absolute or relative value indicating the minimum number (rounded up) of partial match expression keywords an item must contain to match the expression refined by the Intelligent Term Detection (ITD) feature.
If specified, the `intelligentTermDetectionPartialMatchKeywords` value must either be:
- a number between 1 and 10
- a percentage value between 1% and 100% (e.g., `75%`)
**Examples:**
- `3`
- `75%`
**Notes:**
- This parameter has no meaning unless the `intelligentTermDetection` parameter is set to `true`.
Used by the following ML model:
- Automatic relevance tuning (default value: `60%`)
Default "60%"
matchAdvancedExpressionboolean
Whether all items recommended by the ML model should match the advanced query expression (e.g., facet selections).
Used by the following ML models:
- Automatic relevance tuning (default value: `true`)
matchBasicExpressionboolean
Whether all items recommended by the ML model should match the basic query expression (e.g., end-user input in the search box).
Used by the following ML models:
- Automatic relevance tuning (default value: `false`)
maxRecommendationsinteger (int32)
The maximum number of recommendations the ML model should return. This should be set to a relatively low value (typically well below 50), otherwise some of the recommended items may not actually be relevant. (Automatic relevance tuning default value: 5. Query suggest default value: 10)
passageRetrievalobject
numberOfDocumentsToConsiderinteger (int32)
The number of documents to consider for passage retrieval.
Default 40
rankingModifierinteger (int32)
The ranking score modifier the ML model should apply to each item it recommends.
Used by the following ML models:
- Automatic relevance tuning (default value: `1000`)
- Event recommendation (default value: `1000`)
statementGroupIdstring
The unique identifier of the statement group.
useAdvancedConfigurationboolean
**Internal:** This property is exposed for internal use by the Coveo Cloud administration console.
Whether the administration console should show the advanced editor for this association.
**Note:** Properties not supported by the standard editor may not be preserved if managed via direct API calls or the advanced editor.
**Default:** `false`