【发布时间】:2010-11-03 08:41:55
【问题描述】:
我正在使用 Lucene.Net 来索引和搜索文档,并且我正在使用以下代码来创建或打开索引(如果存在):
IndexWriter writer = new IndexWriter(@"C:\index", new StandardAnalyzer(), !IndexExists);
...
private bool IndexExists
{
get
{
return ??
}
}
现在,如何以简单的方式实现IndexExists?我不需要抛出任何异常。
【问题讨论】:
标签: indexing full-text-search lucene.net search full-text-indexing