1

在空的天蓝色容器中执行以下代码时,我得到文件未找到错误(segments.gen;指定的 ​​blob 不存在。)。

AzureDirectory azureDirectory = new AzureDirectory(account, "audiobookindex"); // <-- audiobookindex is the name of the blog storage container on my Azure account

// Create the index writerIndexWriter indexWriter = new IndexWriter(azureDirectory, new StandardAnalyzer(), true);

Azure Library for Lucene.net 程序集内的 OpenInput 似乎失败了。但是,我什至不明白它甚至调用该方法。会认为它只会尝试创建它。

此外,程序集和代码正在访问容器,因为它创建了一个我可以在容器中看到的 write.lock 文件。

有什么建议么?

4

1 回答 1

1

应该可以解决这个问题。市场上的示例是使用较旧的 api 和较旧的框架版本等开发的。我发现上述解决方案效果很好!无需干扰调试器;)

于 2012-11-22T07:38:38.013 回答