diff --git a/src/dotnet/APIView/APIViewWeb/Repositories/CosmosReviewRepository.cs b/src/dotnet/APIView/APIViewWeb/Repositories/CosmosReviewRepository.cs index 977b3cceb32..034bb3a47d2 100644 --- a/src/dotnet/APIView/APIViewWeb/Repositories/CosmosReviewRepository.cs +++ b/src/dotnet/APIView/APIViewWeb/Repositories/CosmosReviewRepository.cs @@ -217,6 +217,7 @@ public async Task> GetReviewFirstLevelPropertiesAsync(string queryStringBuilder.Append($" OR CONTAINS(r.Name, {query}, true)"); queryStringBuilder.Append($" OR CONTAINS(r.ServiceName, {query}, true)"); queryStringBuilder.Append($" OR CONTAINS(r.PackageDisplayName, {query}, true)"); + queryStringBuilder.Append($" OR ENDSWITH(ARRAY_SLICE(r.Revisions, -1)[0].Label, {query}, true)"); } queryStringBuilder.Append($")"); }