Skip to content

Commit 719335b

Browse files
author
Matthew Harris
committed
Trying adding of metadata field
1 parent b9d3a2f commit 719335b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Azure.AISearch.WebApp/Services/AzureCognitiveSearchConfigurationService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ private async Task CreateDocumentsIndex(AppSettingsOverride? settingsOverride, s
157157
new FieldMapping("content") { TargetFieldName = nameof(Document.Content) },
158158
// Map the full blob URL as the document file path.
159159
new FieldMapping("metadata_storage_path") { TargetFieldName = nameof(Document.FilePath) }
160+
// mjh Map the data source custom metadata field on the blob
161+
new FieldMapping("data_source") { TargetFieldName = nameof(Document.DataSource) }
160162
},
161163
// Use the skillset for chunking and embedding.
162164
SkillsetName = skillset.Name

0 commit comments

Comments
 (0)