enablePersonalization
false
enablePersonalization => true|false
Can be used in these methods:
search,
setSettings,
searchForFacetValues,
generateSecuredApiKey,
addApiKey,
updateApiKey
search,
set_settings,
search_for_facet_values,
generate_secured_api_key,
add_api_key,
update_api_key
search,
setSettings,
searchForFacetValues,
generateSecuredApiKey,
addApiKey,
updateApiKey
search,
set_settings,
search_for_facet_values,
generate_secured_api_key,
add_api_key,
update_api_key
search,
setSettings,
searchForFacetValues,
generateSecuredApiKey,
addAPIKey,
updateAPIKey
search,
setSettings,
searchForFacetValues,
generateSecuredApiKey,
addApiKey,
updateApiKey
Search,
SetSettings,
SearchForFacetValues,
GenerateSecuredApiKey,
AddApiKey,
UpdateApiKey
Search,
setSettings,
searchForFacetValues,
generateSecuredApiKey,
addApiKey,
updateApiKey
Search,
SetSettings,
SearchForFacetValues,
GenerateSecuredAPIKey,
AddAPIKey,
UpdateAPIKey
search,
setSettings,
search into facet values,
generateSecuredApiKey,
add key,
update key
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
1
$index->search('query', ['enablePersonalization' => true])
Enable personalization for every search
1
2
3
$index->setSettings([
'enablePersonalization' => true
]);
Enable personalization for the current search and specify a user token
1
2
3
4
$index->search('query', [
'enablePersonalization' => true,
'userToken' => '123456'
]);