Sitecore SXA搜索错误

时间:2017-11-08 05:05:00

标签: sitecore8 sitecore-sxa

我们正在开发包含SXA和WFFM模块的Siteocore 8.2 update 3解决方案。在CM Server上一切都很好但我们在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)

1 个答案:

答案 0 :(得分: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。