Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
QilongTang committed Oct 10, 2023
1 parent c38e028 commit c7b2cf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DynamoCore/Utilities/LuceneSearchUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,10 @@ internal void AddNodeTypeToSearchIndex(NodeSearchElement node, Document doc)
}
SetDocumentFieldValue(doc, nameof(LuceneConfig.NodeFieldsEnum.Parameters), node.Parameters ?? string.Empty);

if(writer == null)
{
CreateLuceneIndexWriter();
}
writer?.AddDocument(doc);
}
}
Expand Down

0 comments on commit c7b2cf8

Please sign in to comment.