1

我们正在开发包含 SXA 和 WFFM 模块的 Siteocore 8.2 update 3 解决方案。CM 服务器上一切正常,但我们在 CD 服务器上搜索时遇到问题。我们已按照安装指南中的说明启用了“SwitchMastertoweb”并配置了 CD SXA 设置。但我们仍然面临这个问题。有什么线索吗?

16728 15:36:13 ERROR Call to resource failed with exception - Resource: https://<<sitename>>/sxa/search/facets?f=sxacategoryname&p=3&l=&sig=&q=pets&s={F33B91B9-DB55-4E81-84C1-71C99E612F9F}|{F33B91B9-DB55-4E81-84C1-71C99E612F9F};
16728 15:36:13 ERROR 

GET call failed - Endpoint: https://<site>/sxa/search/facets?f=sxacategoryname&p=3&l=&sig=&q=pets&s={F33B91B9-DB55-4E81-84C1-71C99E612F9F}|{F33B91B9-DB55-4E81-84C1-71C99E612F9F}; 

HttpStatusCode: (400) BadRequest; HttpStatusDescription: Bad Request; Error: 
Could not create instance of type: Sitecore.XA.Foundation.Search.Providers.Lucene.LuceneIndex. No matching constructor was found.;

24392 15:36:13 WARN  Could not find constructor in ReflectionUtil.CreateObject: Sitecore.XA.Foundation.Search.Providers.Lucene.LuceneIndex. The constructor parameters may not match or it may be an abstract class. Parameter info: Count: 0
24392 15:36:13 WARN  Facets endpoint exception

Exception: Sitecore.Exceptions.ConfigurationException
Message: Could not create instance of type: Sitecore.XA.Foundation.Search.Providers.Lucene.LuceneIndex. No matching constructor was found.

Source: Sitecore.Kernel
   at Sitecore.Configuration.DefaultFactory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)
   at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
   at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert)
   at Sitecore.Configuration.DefaultFactory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert)
   at Sitecore.Configuration.DefaultFactory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper)
   at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
   at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert)
   at Sitecore.Configuration.DefaultFactory.CreateObject(String configPath, String[] parameters, Boolean assert)
   at Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration()
   at Sitecore.ContentSearch.Pipelines.GetContextIndex.FetchIndex.GetContextIndex(IIndexable indexable, GetContextIndexArgs args)
   at Sitecore.ContentSearch.Pipelines.GetContextIndex.FetchIndex.Process(GetContextIndexArgs args)
   at (Object , Object[] )
   at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
   at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
   at Sitecore.Abstractions.CorePipelineWrapper.Run(String pipelineName, PipelineArgs args)
   at Sitecore.ContentSearch.Pipelines.GetContextIndex.GetContextIndexPipeline.Run(ICorePipeline pipeline, GetContextIndexArgs args)
   at Sitecore.XA.Foundation.Search.Services.SearchService.GetQuery(String query, String scope, String language, Coordinates center, String& indexName)
   at Sitecore.XA.Foundation.Search.Controllers.SearchController.GetFacets(String f, String q, String s, String l, String g, String sig)
4

1 回答 1

0

这是一个很晚的答案,我相信这个问题已经在 1.6 和 1.7 中消失了。在旧版本的 SXA 中,我们一直在修补很多 Sitecore 索引 - 没有必要。

我可以看到的异常Could not create instance of type: Sitecore.XA.Foundation.Search.Providers.Lucene.LuceneIndex. No matching constructor was found.正是说明了这一点。有一个不存在的索引补丁。此类问题的解决方案是为不存在的索引删除不需要的补丁(您没有使用它们,它们存在于您的 Sitecore 实例中)。

在 SXA 1.7 中,我们刚刚为sitecore_master_indexsitecore_web_index. 还有一个选项可以使用 SXA 特定索引,而根本不使用 Sitecore 索引。

于 2018-04-13T07:37:52.527 回答