From 42f0f0e4fd1f99354f142cbcb57f362a6b3d65a2 Mon Sep 17 00:00:00 2001 From: Jaliya Udagedara Date: Tue, 11 Jun 2024 07:41:04 +1200 Subject: [PATCH] Update sourcefile field setting IsFilterable to true. --- app/shared/Shared/Services/AzureSearchEmbedService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/shared/Shared/Services/AzureSearchEmbedService.cs b/app/shared/Shared/Services/AzureSearchEmbedService.cs index ab31d2b8..68266ac0 100644 --- a/app/shared/Shared/Services/AzureSearchEmbedService.cs +++ b/app/shared/Shared/Services/AzureSearchEmbedService.cs @@ -132,7 +132,7 @@ public async Task CreateSearchIndexAsync(string searchIndexName, CancellationTok new SearchableField("content") { AnalyzerName = LexicalAnalyzerName.EnMicrosoft }, new SimpleField("category", SearchFieldDataType.String) { IsFacetable = true }, new SimpleField("sourcepage", SearchFieldDataType.String) { IsFacetable = true }, - new SimpleField("sourcefile", SearchFieldDataType.String) { IsFacetable = true }, + new SimpleField("sourcefile", SearchFieldDataType.String) { IsFacetable = true, IsFilterable = true }, new SearchField("embedding", SearchFieldDataType.Collection(SearchFieldDataType.Single)) { VectorSearchDimensions = 1536,