Beispiel #1
0
 private static int UpdateAnswersWithQuestionTagsAndReturnExitCode(UpdateAnswersWithTagsOptions opts)
 {
     try
     {
         var indexer = new BulkIndexer(opts);
         indexer.UpdateAnswersWithQuestionTags(opts.PostsPath, opts.Size);
         return(0);
     }
     catch (Exception e)
     {
         Console.Error.WriteLine(e);
         return(1);
     }
 }
Beispiel #2
0
 private static int RunIndexPostsAndReturnExitCode(IndexPostsOptions opts)
 {
     try
     {
         var indexer = new BulkIndexer(opts);
         indexer.IndexPosts(opts.PostsPath);
         return(0);
     }
     catch (Exception e)
     {
         Console.Error.WriteLine(e);
         return(1);
     }
 }