Home > Contents > Index >  
Template Tags TOC   |    Alpha TOC   |    Tag Family TOC   |    Purpose TOC   |    Annotated TOC   |    Index 

 

commercecontext:getrecommendations

Retrieves and lists the assets that match the recommendation constraints passed to the tag.

Syntax

Parameters

collection (required if collectionid not specified)
Input parameter. Name of the recommendation. The sort and selection criteria defined in the recommendation are used to create the list of possible assets. You can constrain this list by using the MAXCOUNT argument, defined below. If there are any promotions in place that override this recommendation, it substitutes the name of the promotion, instead.

collectionid (required if collection not specified)
Input parameter. ID of the recommendation. The sort and selection criteria defined in the recommendation are used to create the list of possible assets. You can constrain this list by using the MAXCOUNT argument, defined below. If there are any promotions in place that override this recommendation, it substitutes the ID of the promotion, instead.

list (optional)
Input parameter. name of the list of assets you want to be used as the input for the calculation. This argument is applicable only if the recommendation named by collection is an context-based recommendation. Columns are assettype and assetid.

value (optional)
Input parameter. Default rating for assets that do not have one. If you do not declare a value, unrated assets are assigned a default rating of 50 on a scale of 1-100.

maxcount (optional)
Input parameter. Maximum number of assets to return. Use this value to constrain the list of recommended assets.

listvarname (required)
Input and output parameter. As input, name you want to assign to the list of assets returned on output. Its columns are: assettype and assetid.

filter (optional)
Input parameter. true specifies that no assets in the input list can be returned as output; false (default) allows input assets to be returned as output.

deptype (optional)
Input parameter. Default value is unknown which logs unknown dependencies. When the value is set to exist or exact and promotion cannot override this recommendation, it does not log unknown dependencies.

engine (optional)
Input parameter. This argument is used to optimize the recommendations using an external engine. This must be used in conjunction with engineparameters parameter.

engineparameters (optional)
Input parameter. This is a generic list of arguments required as parameters for the engine. This argument is used to optimize the recommendations using an external engine. This must be used in conjunction with the engine parameter.

Description

This tag returns a list containing up to the specified number of recommended assets. The recommendations, and the returned order of them, are based on the details of the referenced recommendation asset. This tag automatically calculates segment affinity and promotion affinity for the current visitor, if they have not yet been calculated. For information about creating recommendations, including context-based recommendations, see the Sites Developer's Guide.

NOTE: This tag also causes compositional dependencies to be recorded for all assets that contribute to the returned lists. However unknowndeps will be logged in the following scenarios:

To optimize the recommendations with RTD, set the engine parameter to rtd. Other RTD specific parameters must be provided via the engineparameters parameter which is a list with columns advisor, sessionkey, attributes, and assetattributes.

Example code snippet:

The advisor and sessionkey values are required.
   Home > Contents > Index >

Oracle JSP Tag Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.