Skip to content

Commit 09e329f

Browse files
QilongTangmjkkirschner
authored andcommitted
DYN-6364 Skip Lucene indexing process in UIless mode (#14523)
* skip Lucene indexing process in UIless mode * Update comments
1 parent d453be1 commit 09e329f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/DynamoCore/Models/DynamoModel.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ internal LuceneSearchUtility LuceneUtility
160160

161161
/// <summary>
162162
/// Flag to indicate that there is no UI on this process, and things
163-
/// like the update manager and the analytics collection should be
164-
/// disabled.
163+
/// like the node index process, update manager and the analytics collection
164+
/// should be disabled.
165165
/// </summary>
166166
public static bool IsHeadless { get; set; }
167167

src/DynamoCore/Utilities/LuceneSearchUtility.cs

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ internal LuceneSearchUtility(DynamoModel model, LuceneStartConfig config)
106106
/// </summary>
107107
internal void InitializeLuceneConfig()
108108
{
109+
if (DynamoModel.IsHeadless) return;
110+
109111
addedFields = new List<string>();
110112

111113
DirectoryInfo luceneUserDataFolder;

0 commit comments

Comments
 (0)