我们正在开发包含 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)