fix(gms): Fixed Recently Viewed section for users with '@' in the URN. (#8754)

Co-authored-by: pi-skrydalewicz-ext <pi.skrydalewicz.ext@adevinta.com>
Co-authored-by: amanda-her <912amandahernando@gmail.com>
This commit is contained in:
skrydal 2023-09-08 03:08:41 +02:00 committed by GitHub
parent 90bceb77a4
commit 794eb0324a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,7 @@ public class RecentlyViewedSource implements RecommendationSource {
BoolQueryBuilder query = QueryBuilders.boolQuery();
// Filter for the entity view events of the user requesting recommendation
query.must(
QueryBuilders.termQuery(ESUtils.toKeywordField(DataHubUsageEventConstants.ACTOR_URN, true), userUrn.toString()));
QueryBuilders.termQuery(ESUtils.toKeywordField(DataHubUsageEventConstants.ACTOR_URN, false), userUrn.toString()));
query.must(
QueryBuilders.termQuery(DataHubUsageEventConstants.TYPE, DataHubUsageEventType.ENTITY_VIEW_EVENT.getType()));
source.query(query);