Lucene.Net 4.8.0
2021-01-27 20:15
标签:foreach index arch cto bsp dynamic pen item max Lucene.Net 4.8.0 标签:foreach index arch cto bsp dynamic pen item max 原文地址:https://www.cnblogs.com/chenbingquan/p/13218336.html获取全部索引数据
/// 获取所有索引值
///
public static List
{
var reader = DirectoryReader.Open(FSDirectory.Open(new DirectoryInfo(indexDir)));
var searcher = new IndexSearcher(reader);
var dd = searcher.Doc(i);
dynamic expando = new System.Dynamic.ExpandoObject();
dd.Fields.ToList().ForEach(item =>
{
(expando as ICollection
});
aList.Add(expando);
}
return aList;
}