Skip to content

Commit

Permalink
Extend APIView Search to support pullrequest in general search (#5586)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu authored Mar 10, 2023
1 parent f45693d commit 6c4332d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ public async Task<IEnumerable<string>> 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($")");
}
Expand Down

0 comments on commit 6c4332d

Please sign in to comment.