Skip to content

Commit

Permalink
Update search query to use exists to verify revisions data (#7221)
Browse files Browse the repository at this point in the history
Co-authored-by: praveenkuttappan <[email protected]>
  • Loading branch information
praveenkuttappan and praveenkuttappan authored Nov 1, 2023
1 parent 7904c61 commit df33197
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ public async Task<IEnumerable<string>> GetReviewFirstLevelPropertiesAsync(string
{
var query = '"' + $"{item}" + '"';
queryStringBuilder.Append($" CONTAINS(r.Name, {query}, true)");
queryStringBuilder.Append($" OR CONTAINS(r.ServiceName, {query}, true)");
queryStringBuilder.Append($" OR CONTAINS(r.PackageDisplayName, {query}, true)");
queryStringBuilder.Append($" OR EXISTS(SELECT VALUE t FROM t IN r.Revisions WHERE CONTAINS(t.Name, {query}, true) or CONTAINS(t.PackageName, {query}, true))");
}
queryStringBuilder.Append($")");
}
Expand Down

0 comments on commit df33197

Please sign in to comment.