API Reference / API Parameters / enablePersonalization
Feb. 26, 2019

enablePersonalization

Type: boolean
Engine default: false
Parameter syntax
enablePersonalization => true|false

Can be used in these methods:
search, browseObjects, searchForFacetValues, generateSecuredApiKey, addApiKey, updateApiKey

About this parameter#

Enable the Personalization feature.

The effect of setting enablePersonalization to true is to take into account user insights to personalize the ranking of records.

Examples#

Enable personalization for the current search#

Edit
1
$index->search('query', ['enablePersonalization' => true])

Enable personalization for the current search and specify a user token#

Edit
1
2
3
4
$index->search('query', [
  'enablePersonalization' => true,
  'userToken' => '123456'
]);

Did you find this page helpful?

PHP