Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CherryPick] DYN-6364 Skip Lucene indexing process in UIless mode (#14523) #14995

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/DynamoCore/Models/DynamoModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ internal LuceneSearchUtility LuceneUtility

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

Expand Down
2 changes: 2 additions & 0 deletions src/DynamoCore/Utilities/LuceneSearchUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ internal LuceneSearchUtility(DynamoModel model, LuceneStartConfig config)
/// </summary>
internal void InitializeLuceneConfig()
{
if (DynamoModel.IsHeadless) return;

addedFields = new List<string>();

DirectoryInfo luceneUserDataFolder;
Expand Down
Loading