我按照这里的指南从源代码中设置Virto Commercehttp://docs.virtocommerce.com/display/vc1devguide/Source+代码+获取+启动
我在connectionString.local.config文件中将Lucene设置为搜索提供程序
<add name="VirtoCommerce" connectionString="Data Source=localhostsqlexpress;Initial Catalog=VirtoCommerce;Integrated Security = true;MultipleActiveResultSets=True;Connect Timeout=420"
providerName="System.Data.SqlClient" />
<add name="SearchConnectionString" connectionString="server=~/app_data/virto/search;scope=default;provider=lucene" />
我没有看到任何在这里生成的索引文件"App_Data\Virto\Search\default catalogitem"。当我试图在浏览器上打开网站时,我收到以下错误
no segments* file found in Lucene.Net.Store.SimpleFSDirectory@C:workvirtocommercesrcPresentationFrontEndStoreWebAppapp_dataVirtosearch/default-catalogitem lockFactory=Lucene.Net.Store.NativeFSLockFactory: files:
Source Error:
Line 251:
Line 252: var dir = FSDirectory.Open(new DirectoryInfo(GetDirectoryPath(folderName)));
Line 253: var searcher = new IndexSearcher(dir);
Line 254:
Line 255: var q = (QueryBuilder)QueryBuilder.BuildQuery(criteria);
Source File: c:workvirtocommercesrcExtensionsSearchLuceneSearchProviderLuceneSearchProvider.cs Line: 253
我已经运行了安装搜索powershell脚本,但它没有帮助。
感谢
尝试在Commerce Manager中重建搜索索引http://docs.virtocommerce.com/display/vc1userguide/Search+设置