/// <summary>
 /// Called on startup to configure each index.
 /// </summary>
 /// <remarks>
 /// Configures and unlocks all Lucene based indexes registered with the <see cref="IExamineManager"/>.
 /// </remarks>
 internal static void ConfigureIndexes(this IExamineManager examineManager, IMainDom mainDom, ILogger logger)
 {
     LazyInitializer.EnsureInitialized(
         ref _configuredInit,
         ref _isConfigured,
         ref _isConfiguredLocker,
         () =>
     {
         examineManager.ConfigureLuceneIndexes(logger, !mainDom.IsMainDom);
         return(null);
     });
 }