lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhershko <>
Subject [GitHub] lucenenet pull request: Adding a MergeScheduler that uses Tasks
Date Mon, 09 May 2016 05:17:20 GMT
Github user synhershko commented on a diff in the pull request:
    --- Diff: src/Lucene.Net.Core/Index/LiveIndexWriterConfig.cs ---
    @@ -149,7 +149,11 @@ internal LiveIndexWriterConfig(Analyzer analyzer, LuceneVersion matchVersion)
                 useCompoundFile = IndexWriterConfig.DEFAULT_USE_COMPOUND_FILE_SYSTEM;
                 openMode = OpenMode_e.CREATE_OR_APPEND;
                 similarity = IndexSearcher.DefaultSimilarity;
    +            mergeScheduler = new TaskMergeScheduler();
                 mergeScheduler = new ConcurrentMergeScheduler();
    --- End diff --
    The C# way is to use the object initializer on LiveIndexWriterConfig to set it, so:
    new LiveIndexWriterConfig() { MergeScheduler = new TaskMergeScheduler() }
    while keeping ConcurrentMergeScheduler the default.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message