Skip to content

Commit eb12782

Browse files
authored
Fix incorrect index existence check in AzureAISearchManager (#18087)
1 parent ffe98a3 commit eb12782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OrchardCore/OrchardCore.Search.AzureAI.Core/Services/AzureAISearchIndexManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public async Task<bool> RebuildAsync(IndexProfile indexProfile)
131131

132132
var client = _clientFactory.CreateSearchIndexClient();
133133

134-
if (await ExistsAsync(indexProfile.IndexName))
134+
if (await ExistsAsync(indexProfile.IndexFullName))
135135
{
136136
await client.DeleteIndexAsync(indexProfile.IndexFullName);
137137
}

0 commit comments

Comments
 (0)