示例#1
0
        public void Save()
        {
            var         data = PrepareData();
            LuceneIndex db   = new LuceneIndex(typeName, directory, mockDocBuilder.Object, mockPathBuilder.Object, Version.LUCENE_30);

            foreach (var d in data)
            {
                db.AddDocument(d);
            }
            db.Save();
            db.Close();
        }