Skip to content

Commit 6b72039

Browse files
author
Matthew Harris
committed
Adding new fields to search index
1 parent e95397d commit 6b72039

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ private async Task CreateDocumentsIndex(AppSettingsOverride? settingsOverride, s
158158
// Map the full blob URL as the document file path.
159159
new FieldMapping("metadata_storage_path") { TargetFieldName = nameof(Document.FilePath) },
160160
// mjh Map the data source custom metadata field on the blob
161-
new FieldMapping("data_source") { TargetFieldName = nameof(Document.DataSource) }
161+
new FieldMapping("data_source") { TargetFieldName = nameof(Document.DataSource) },
162162
// mjh Map the source url custom metadata field on the blob
163-
new FieldMapping("source_url") { TargetFieldName = nameof(Document.SourceUrl) }
163+
new FieldMapping("source_url") { TargetFieldName = nameof(Document.SourceUrl) },
164164
// mjh Map the author custom metadata field on the blob
165-
new FieldMapping("author") { TargetFieldName = nameof(Document.Author) }
165+
new FieldMapping("author") { TargetFieldName = nameof(Document.Author) },
166166
// mjh Map the type custom metadata field on the blob
167-
new FieldMapping("doc_type") { TargetFieldName = nameof(Document.Type) }
167+
new FieldMapping("doc_type") { TargetFieldName = nameof(Document.Type) },
168168
// mjh Map the publish date custom metadata field on the blob
169169
new FieldMapping("publish_date") { TargetFieldName = nameof(Document.PublishDate) }
170170
},

0 commit comments

Comments
 (0)