Hi Team,
Episerver.find.personalization ver13.2.3
We already using recommended products on our site. Now we have to implement the personalized find but it's not working for me. Please guide how to work with the find personalization.
System.Threading.Tasks.Task.Factory.StartNew(currentContext => { HttpContext.Current = (HttpContext)currentContext; client.Personalization().Refresh(); }, HttpContext.Current.ApplicationInstance.Context);
var result = client.Search<SearchResultItem>()
.For(subQueryText)
.UsingPersonalization()
.Filter(x => x.CatalogId.Match(Convert.ToInt32(GlobalSettings.SnSCatalogId)))
.Filter(x => x.LanguageCode.Match(currentCulture.Name))
.ApplyUserFilter(model.CurrentUser)
.Skip((model.PageNumber - 1) * model.ItemsPerPage)
.Take(model.ItemsPerPage)
.GetResult();
Keys added
<add key="episerver:tracking.Enabled" value="true" />
<add key="episerver:personalization.BaseApiUrl" value="https://uat.peerius.com/xxxxxx" />
<add key="episerver:personalization.Site" value="xxxx" />
<add key="episerver:personalization.ClientToken" value="xxx" />
<add key="episerver:personalization.AdminToken" value="xxx" />
I didn't get any value in below one(prefData is empty)
var prefData = _client.Personalization().Conventions.PreferenceRepository.Load();
if (prefData != null) {
var attributes = prefData.Attributes;
}
Advance Thanks