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:

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

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

Enable personalization for the current search and specify a user token

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

Did you find this page helpful?