关于virto commerce的搜索提供程序错误

时间:2015-02-19 14:56:29

标签: lucene.net virtocommerce

我按照此处的指南http://docs.virtocommerce.com/display/vc1devguide/Source+code+getting+started

从源代码设置了Virto Commerce

我将Lucene设置为connectionString.local.config文件中的搜索提供程序

<add name="VirtoCommerce" connectionString="Data Source=localhost\sqlexpress;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:\work\virtocommerce\src\Presentation\FrontEnd\StoreWebApp\app_data\Virto\search/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:\work\virtocommerce\src\Extensions\Search\LuceneSearchProvider\LuceneSearchProvider.cs    Line: 253 

我已经运行了setup-search powershell脚本,但它没有帮助。

由于

1 个答案:

答案 0 :(得分:0)

尝试在Commerce Manager http://docs.virtocommerce.com/display/vc1userguide/Search+Settings

中重建搜索索引