Example #1
0
 public override void Run()
 {
     for (int j = 1; j < OuterInstance.DocsPerThread; j++)
     {
         Document doc = new Document();
         doc.Add(OuterInstance.NewStringField("sizeContent", English.IntToEnglish(Num * OuterInstance.DocsPerThread + j).Trim(), Field.Store.YES));
         try
         {
             Writer.AddDocument(doc);
         }
         catch (IOException e)
         {
             throw new Exception(e.Message, e);
         }
     }
 }