The Personalization interface
You can override or update a widget's configuration at runtime. You do this in the search request itself. Various rules are driven by the attributes of the entity in the request.
The interface contains the following properties:
|
Property |
Type |
Description |
|---|---|---|
|
|
string |
Algorithm to use to get personalized results for the user. You can use either the mlt or affinity algorithm. The algorithms are similar but use different techniques to personalize results.
|
|
|
Array<string> |
List of attributes to use for determining similar content. To mark an attribute for search ranking in Sitecore Search, on the menu bar, click Administration > Domain Settings > Attributes, then select an attribute, click Use For Features, and select the Personalization check box. If the |
|
|
Array<string> |
List of IDs to use to look similar content. For example, the ID of a blog post the visitor has recently clicked. If you do not pass any ID, the user's past event data is used. The |
Unless indicated otherwise, all values are optional.