Example #1
0
 public override void CreateIndex()
 {
     using (IndexWriter indexWriter = new IndexWriter(this.index, new SynonymAnalyzer(new XmlSynonymEngine()), IndexWriter.MaxFieldLength.UNLIMITED))
     {
         GISAUtils.getAllNivelDocumentalInternetIds().ToList().ForEach(id => indexWriter.AddDocument(this.GetDocument(id)));
         indexWriter.Optimize();
         indexWriter.Dispose();
     }
 }