问题描述
我们使用的是 Lucene 索引,而不是Solr.我们目前在CD服务器中的列表管理器遇到问题.下面的代码在CD服务器中引发了一个异常,因为它无法从Sitecore Configuration Factory实例化列表管理器.
We are using Lucene index instead of Solr. We are currently facing an issue with our List Manager in CD server. The below code throws an exception in CD server as it's unable to instantiate List Manger from Sitecore Configuration Factory.
newsRecipientList = listRepository.GetEditableRecipientCollection("{my list guid }");
我已经在扩展环境中浏览过List Manager的Sitecore文档,但是只讨论了Solr. https://doc.sitecore.net/sitecore_experience_platform/ure_manager_manager-in_a >
I've already gone through the Sitecore documentation for List Manager in a scaled environment, but it only talks about Solr.https://doc.sitecore.net/sitecore_experience_platform/digital_marketing/the_list_manager/configure_the_list_manager_in_a_scaled_environment
对于使用Lucene进行List Manager的Sitecore配置的任何指导,我们深表感谢.
Any guidance on Sitecore configuration for List Manager using Lucene is much appreciated.
Sitecore异常堆栈跟踪
Sitecore Exception Stacktrace
推荐答案
由于列表管理器在CD环境中不可用,因此我们需要调用Sitecore API来更新/添加联系人.下面的类具有用于修改联系人列表的api.
Since List Manager is not available in CD environment we need to call Sitecore API to update/add contacts. Below class has api's to modify contact list.
Sitecore.Modules.EmailCampaign.ClientApi
我们需要在CD服务器中添加连接字符串才能调用此api.
We need to add connection string in CD server in order to call this api's.
<add name="EmailCampaignClientService" connectionString="url=http://<Your CM Server host>/sitecore%20modules/web/emailcampaign/ecmclientservice.asmx;timeout=60000" />
这篇关于具有Lucene搜索配置的分布式环境中的Sitecore EXM列表管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!