diff --git a/src/dotnet/APIView/APIViewWeb/Repositories/CosmosReviewRepository.cs b/src/dotnet/APIView/APIViewWeb/Repositories/CosmosReviewRepository.cs index 034bb3a47d2..970d9e985f3 100644 --- a/src/dotnet/APIView/APIViewWeb/Repositories/CosmosReviewRepository.cs +++ b/src/dotnet/APIView/APIViewWeb/Repositories/CosmosReviewRepository.cs @@ -217,7 +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($" OR CONTAINS(ARRAY_SLICE(r.Revisions, -1)[0].Label, {query}, true)"); } queryStringBuilder.Append($")"); }